You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If no SLF4J providers are found, SLF4J defaults to no-op logger, which results in all logs, including errors and exceptions being hidden.
IMO this is not a sane default, a better default would be logging exceptions, errors and warning to stdout. stdout is perfectly fine for development and became a common practice for Docker containers in production.
The codebase already has SimpleLogger that does this, but when I tried to reference it in slf4j.LoggerFactory it introduced a circular dependency. Maybe it makes sense to copy SimpleLogger to base package, remove all extra code for configurability/etc, call it FallbackStdoutLogger and use it by default?
The text was updated successfully, but these errors were encountered:
If no SLF4J providers are found, SLF4J defaults to no-op logger, which results in all logs, including errors and exceptions being hidden.
IMO this is not a sane default, a better default would be logging exceptions, errors and warning to
stdout
.stdout
is perfectly fine for development and became a common practice for Docker containers in production.The codebase already has
SimpleLogger
that does this, but when I tried to reference it inslf4j.LoggerFactory
it introduced a circular dependency. Maybe it makes sense to copySimpleLogger
to base package, remove all extra code for configurability/etc, call itFallbackStdoutLogger
and use it by default?The text was updated successfully, but these errors were encountered: