From 3adc43938efade92249e9b3cd87a1534a12a940f Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 24 Jan 2020 20:40:23 +0100 Subject: [PATCH] Make 'stack' log to 'stdout' AND 'daily' to satisfy both Docker and self-hosted users. --- .env.example | 4 +++- config/logging.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 8585f0fc22..336af709e8 100644 --- a/.env.example +++ b/.env.example @@ -32,7 +32,9 @@ TRUSTED_PROXIES= # 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=stdout +# A rotating log option is 'daily', creates 5 files that (surprise) rotate. +# Default setting 'stack' will log to 'daily' and to 'stdout' at the same time. +LOG_CHANNEL=stack # Log level. You can set this from least severe to most severe: # debug, info, notice, warning, error, critical, alert, emergency diff --git a/config/logging.php b/config/logging.php index e2bb74cdb1..0e089acbe3 100644 --- a/config/logging.php +++ b/config/logging.php @@ -56,7 +56,7 @@ return [ 'channels' => [ 'stack' => [ 'driver' => 'stack', - 'channels' => ['daily', 'slack'], + 'channels' => ['daily', 'stdout'], ], 'single' => [