🪵Logs
This module wraps up the https://github.com/rs/zerolog package.
Other modules will be expecting you to provide a zerolog instance to them.
Through the wrapper, you'll be able to configure the logging level via environment variables, as well as enable pretty console output while in development.
Additionally, there's a dedicated marshaller for error stacktraces.
The logger is non-blocking, so you should make sure that all logs are flushed before the app is closed (an example of the complete setup is provided below).
Last updated