The logging adapter provides a logger interface.
||The file logger adapter write log messages into a file.|
||The null logger adapter is a dummy adapter and is used to disable the ability to log messages.|
The UCMS uses the logging adapter to log errors. The mysql adapter also uses the logging adapter to log queries and errors, if this feature was configured.
The following example illustrates how a custom logger can be used:
$logger = new \Ucms\Adapter\Logger\FileLoggerAdapter(
This will write a log message in the log file:
192.168.0.100 [2018-09-21 19:30:22] "GET /en/ HTTP/1.1" "Hello World"