Make log level configurable.
Current implementation only allows setting Debug
to true
, resulting in the log level being changed from Info
to Debug
.
Instead, the log level should be configurable explicitly in the config file, using the default Info
and falling back to Debug
if something invalid is specified.
Valid levels should be:
Warn
Info
Debug
Trace