Browse Source

:wrench: add stdout logger

Jeremy Zheng 1 month ago
parent
commit
2cf3c88b12
1 changed files with 9 additions and 0 deletions
  1. 9 0
      api-v13/config/logging.php

+ 9 - 0
api-v13/config/logging.php

@@ -126,6 +126,15 @@ return [
         'emergency' => [
             'path' => storage_path('logs/laravel.log'),
         ],
+	'stdout' => [
+            'driver' => 'monolog',
+            'level' => env('LOG_LEVEL', 'debug'),
+            'handler' => Monolog\Handler\StreamHandler::class,
+            'formatter' => env('LOG_STDERR_FORMATTER'),
+            'with' => [
+                'stream' => 'php://stdout',
+            ],
+	],
 
     ],