12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- use Monolog\Handler\StreamHandler;
- use Monolog\Handler\SyslogUdpHandler;
- return [
- /*
- * Benchmark note:
- *
- * If Laravel does not have a log defined it will open an emergency log file and log
- * errors to the filesystem. This configuration sends logs to stdout instead.
- * php-fpm directs these to /dev/null unless "catch_workers_output = yes" is set in php-fpm.conf
- *
- */
- /*
- |--------------------------------------------------------------------------
- | Default Log Channel
- |--------------------------------------------------------------------------
- |
- | This option defines the default log channel that gets used when writing
- | messages to the logs. The name specified in this option should match
- | one of the channels defined in the "channels" configuration array.
- |
- */
- 'default' => env('LOG_CHANNEL', 'stdout'),
- /*
- |--------------------------------------------------------------------------
- | Log Channels
- |--------------------------------------------------------------------------
- |
- | Here you may configure the log channels for your application. Out of
- | the box, Laravel uses the Monolog PHP logging library. This gives
- | you a variety of powerful log handlers / formatters to utilize.
- |
- | Available Drivers: "single", "daily", "slack", "syslog",
- | "errorlog", "monolog",
- | "custom", "stack"
- |
- */
- 'channels' => [
- 'stdout' => [
- 'driver' => 'monolog',
- 'handler' => StreamHandler::class,
- 'formatter' => env('LOG_STDERR_FORMATTER'),
- 'with' => [
- 'stream' => 'php://stdout',
- ],
- ],
- ],
- ];
|