Logger: Bypass Log Level Restriction


For logger, if you set the log level to error in your application config, would there be a way to use a single info level log without changing the application-wide settings?

IIRC current Elixir Logger implementation allows setting level per module via :logger.set_module_level/2. So if you can do it for whole module, then yes, but this will not work on per-line or per-function basis.

1 Like