diff --git a/.env.example b/.env.example index e2f975498e..058576b90b 100644 --- a/.env.example +++ b/.env.example @@ -26,10 +26,12 @@ APP_URL=http://localhost TRUSTED_PROXIES= # The log channel defines where your log entries go to. -# 'daily' is the default logging mode giving you 5 daily rotated log files in /storage/logs/. +# - If you use DOCKER, use 'docker_out' +# - For everything else, use 'daily' + # Several other options exist. You can use 'single' for one big fat error log (not recommended). # Also available are 'syslog', 'errorlog' and 'stdout' which will log to the system itself. -LOG_CHANNEL=daily +LOG_CHANNEL=docker_out # Log level. You can set this from least severe to most severe: # debug, info, notice, warning, error, critical, alert, emergency @@ -180,6 +182,7 @@ DEMO_USERNAME= DEMO_PASSWORD= USE_ENCRYPTION=false IS_SANDSTORM=false +IS_DOCKER=false IS_HEROKU=false BUNQ_USE_SANDBOX=false FFIII_LAYOUT=v1 diff --git a/config/logging.php b/config/logging.php index 80dd12fbb5..e2bb74cdb1 100644 --- a/config/logging.php +++ b/config/logging.php @@ -69,6 +69,11 @@ return [ 'path' => 'php://stdout', 'level' => envNonEmpty('APP_LOG_LEVEL', 'info'), ], + 'docker_out' => [ + 'driver' => 'single', + 'path' => 'php://stdout', + 'level' => envNonEmpty('APP_LOG_LEVEL', 'info'), + ], 'daily' => [ 'driver' => 'daily', 'path' => storage_path('logs/ff3-' . PHP_SAPI . '.log'),