elixir - How to provide different log levels to the loggers in the mix application? -
i installed rollbax
package, provides ability log output rollbar via rollbax.logger
module. problem want have level: :info
default elixir :console
logger , level: :error
rollbax.logger
.
how can that?
you can in config.exs, this.
config :logger, backends: [ :console, {rollbax.logger, :rollbax} ] config :logger, :console, metadata: [:application, :module, :function, :file, :line], metadata_filter: [], compile_time_purge_level: :info, level: :info config :logger, :rollbax, metadata: [:application, :module, :function, :file, :line], metadata_filter: [], compile_time_purge_level: :error, level: :error
Comments
Post a Comment