Browse Source

add stderr example

Taylor Otwell 6 years ago
parent
commit
66f5757d58
1 changed files with 10 additions and 0 deletions
  1. 10 0
      config/logging.php

+ 10 - 0
config/logging.php

@@ -1,5 +1,7 @@
 <?php
 
+use Monolog\Handler\StreamHandler;
+
 return [
 
     /*
@@ -56,6 +58,14 @@ return [
             'level' => 'critical',
         ],
 
+        'stderr' => [
+            'driver' => 'monolog',
+            'handler' => StreamHandler::class,
+            'with' => [
+                'stream' => 'php://stderr',
+            ],
+        ],
+
         'syslog' => [
             'driver' => 'syslog',
             'level' => 'debug',