Runtime-configurable logging level for sockets and channels

Is it possible to configure the logging level for sockets and channels at runtime? Unless I’m missing something, this can only be done at compile-time with:

use Phoenix.Socket, log: :info

If I wanted to add this then it seems the way to go would be to support an MFA for the :log option, right?