3 use Monolog\Handler\NullHandler;
4 use Monolog\Handler\StreamHandler;
5 use Monolog\Handler\SyslogUdpHandler;
10 |--------------------------------------------------------------------------
12 |--------------------------------------------------------------------------
14 | This option defines the default log channel that gets used when writing
15 | messages to the logs. The name specified in this option should match
16 | one of the channels defined in the "channels" configuration array.
20 'default' => env('LOG_CHANNEL', 'stack'),
23 |--------------------------------------------------------------------------
24 | Deprecations Log Channel
25 |--------------------------------------------------------------------------
27 | This option controls the log channel that should be used to log warnings
28 | regarding deprecated PHP and library features. This allows you to get
29 | your application ready for upcoming major versions of dependencies.
33 'deprecations' => env('LOG_DEPRECATIONS_CHANNEL', 'null'),
36 |--------------------------------------------------------------------------
38 |--------------------------------------------------------------------------
40 | Here you may configure the log channels for your application. Out of
41 | the box, Laravel uses the Monolog PHP logging library. This gives
42 | you a variety of powerful log handlers / formatters to utilize.
44 | Available Drivers: "single", "daily", "slack", "syslog",
45 | "errorlog", "monolog",
53 'channels' => ['single'],
54 'ignore_exceptions' => false,
59 'path' => storage_path('logs/laravel.log'),
60 'level' => env('LOG_LEVEL', 'debug'),
65 'path' => storage_path('logs/laravel.log'),
66 'level' => env('LOG_LEVEL', 'debug'),
72 'url' => env('LOG_SLACK_WEBHOOK_URL'),
73 'username' => 'Laravel Log',
75 'level' => env('LOG_LEVEL', 'critical'),
79 'driver' => 'monolog',
80 'level' => env('LOG_LEVEL', 'debug'),
81 'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class),
83 'host' => env('PAPERTRAIL_URL'),
84 'port' => env('PAPERTRAIL_PORT'),
85 'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'),
90 'driver' => 'monolog',
91 'level' => env('LOG_LEVEL', 'debug'),
92 'handler' => StreamHandler::class,
93 'formatter' => env('LOG_STDERR_FORMATTER'),
95 'stream' => 'php://stderr',
100 'driver' => 'syslog',
101 'level' => env('LOG_LEVEL', 'debug'),
105 'driver' => 'errorlog',
106 'level' => env('LOG_LEVEL', 'debug'),
110 'driver' => 'monolog',
111 'handler' => NullHandler::class,
115 'path' => storage_path('logs/laravel.log'),