The codebase uses 2 logging streams:
Configuration is defined in
settings.yml, using a wrapper for
Monolog. The reason for the wrapper, is so that we can define the
api logging streams in the same object, and provide the same configurability that
Monolog provides. The two logging streams can then be confiured to use as many handlers and formatters as you wish.
This is done in the
debug section in
default formatter is provided in
debug.formatters, but you can add as many as you like. These define the log message layout.
Sample handlers are provided in
You can use a single handler (to send db and api logs to the same file or DB table for example ), or multiple handlers if you want to send the logging to multiple handlers.
level attribute, set the value to:
This is done the
debug.loggers section. assign as many handlers as you like to the