I am able to adjust the logging to :warn
or :info
, etc, in the config/dev.exs
file, but I can’t figure out where it is getting set to :debug
in the first place.
Thanks!
I am able to adjust the logging to :warn
or :info
, etc, in the config/dev.exs
file, but I can’t figure out where it is getting set to :debug
in the first place.
Thanks!
Do you have an entry in your config/config.exs
file, otherwise it defaults to showing everything.
No, config/config.exs
does not set a log level. But I hadn’t realized that :debug
is the default. Thanks.
As in right in lib/logger/ebin/logger.app
of the Elixir distribution:
{application,logger,
[{applications,[kernel,stdlib,elixir]},
{description,"logger"},
{modules,['Elixir.Logger','Elixir.Logger.App',
'Elixir.Logger.Backends.Console',
'Elixir.Logger.Config','Elixir.Logger.ErrorHandler',
'Elixir.Logger.Formatter','Elixir.Logger.Translator',
'Elixir.Logger.Utils','Elixir.Logger.Watcher',
'Elixir.Logger.WatcherSupervisor']},
{vsn,"1.5.1"},
{registered,['Elixir.Logger','Elixir.Logger.Supervisor',
'Elixir.Logger.Watcher']},
{mod,{'Elixir.Logger.App',[]}},
{env,[{level,debug},
{utc_log,false},
{truncate,8096},
{backends,[console]},
{translators,[{'Elixir.Logger.Translator',translate}]},
{sync_threshold,20},
{handle_otp_reports,true},
{handle_sasl_reports,false},
{compile_time_purge_level,debug},
{compile_time_application,nil},
{discard_threshold_for_error_logger,500},
{translator_inspect_opts,[]},
{console,[]}]}]}.
i.e.
{env,[{level,debug},