fix in slim monologger for docker deployment

This commit is contained in:
sabelo 2024-07-28 20:09:02 -03:00
parent d644195bea
commit 1b4969358d

View File

@ -17,7 +17,8 @@ return [
// Monolog settings // Monolog settings
'logger' => [ 'logger' => [
'name' => 'slim-app', 'name' => 'slim-app',
'path' => isset($_ENV['docker']) ? 'php://stdout' : __DIR__ . '/../logs/app.log', //'path' => isset($_ENV['docker']) ? 'php://stdout' : __DIR__ . '/../logs/app.log',
'path' => 'php://stdout',
'level' => \Monolog\Logger::DEBUG, 'level' => \Monolog\Logger::DEBUG,
], ],
'db' => [ 'db' => [