Explorar o código

:wrench: add stdout logger

Jeremy Zheng hai 1 día
pai
achega
2cf3c88b12
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  1. 9 0
      api-v13/config/logging.php

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

@@ -126,6 +126,15 @@ return [
         'emergency' => [
         'emergency' => [
             'path' => storage_path('logs/laravel.log'),
             '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',
+            ],
+	],
 
 
     ],
     ],