Please read the configuration.
There are several classes which can be used for your development.
Logger
-
AbstractEasyGoingLogger - Base class for all the logger
-
ConsoleLogger - Logging to console
-
Log format:
%datetime% [%level%] %class%→%function%() - %message% %context% %extra%
-
-
CsvLogger - Writing to a file in CSV format
-
DoNothingLogger - Replace any other logger with this and logging is disabled
-
FileLogger - Writing to a file
-
PlainLogger - Sending the output "as it is" to the console (raw)
Formatter
-
Formatter/EasyGoingFormatter - Formatter for the Monolog/ConsoleLogger
-
Formatter/PlainFormatter - Formatter for the Monolog/PlainLogger
Handler
-
Handler/ConsoleHandler - Handler for the Monolog/ConsoleLogger
-
Handler/CsvHandler - Handler for the Monolog/CsvLogger
-
Handler/FileHandler - Handler for the Monolog/FileLogger
Processor
-
Processor/PaddingProcessor - Processor for the Monolog/ConsoleLogger
-
Processor/PlainProcessor - Processor for the Monolog/PlainLogger
Please read some examples.
Please read the project status.
-
Composer Commands - New commands for composer
-
Monolog (c) 2025 by Oliver Glowa