Add Monolog to your project
[
...,
new LoggerModule([
'name' => 'default',
'handlers' => [
StreamHandler::class => [
'path' => '/tmp/test.log',
'level' => Logger::DEBUG,
],
],
]),
]