Currently the logger is global better to use injection.
A typical logger has following levels,
Info - prints general info
warn - prints warnings
error - prints error / error messages
debug - prints messages useful for debugging
fatal - prints fatar error messages before crashing the process.
When application is bootstrapped it may configure the logger to only log messages that are error / fatal (common in production)
or log everything (development / test environments).
current logger implementation lacks this ability.
Current logger is only able to log the text message to stdout , typically in production environment a structured message format is used such as JSON. Logger could implement ability to log text or json to stdout depending on configuration.
Currently the logger is global better to use injection.
A typical logger has following levels,
When application is bootstrapped it may configure the logger to only log messages that are error / fatal (common in production) or log everything (development / test environments).
current logger implementation lacks this ability.