1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-30 19:55:10 +00:00
pixelfed/config/logging.php

95 lines
2.6 KiB
PHP
Raw Normal View History

2018-04-15 23:56:48 +00:00
<?php
2022-02-13 19:22:58 +00:00
use Monolog\Handler\NullHandler;
2018-04-15 23:56:48 +00:00
use Monolog\Handler\StreamHandler;
return [
/*
|--------------------------------------------------------------------------
| 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', 'stack'),
/*
|--------------------------------------------------------------------------
| 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' => [
'stack' => [
2018-08-28 03:07:36 +00:00
'driver' => 'stack',
2018-04-15 23:56:48 +00:00
'channels' => ['single'],
2022-02-13 19:22:58 +00:00
'ignore_exceptions' => false,
2018-04-15 23:56:48 +00:00
],
'single' => [
'driver' => 'single',
2018-08-28 03:07:36 +00:00
'path' => storage_path('logs/laravel.log'),
2022-02-13 19:22:58 +00:00
'level' => env('LOG_LEVEL', 'debug'),
2018-04-15 23:56:48 +00:00
],
'daily' => [
'driver' => 'daily',
2018-08-28 03:07:36 +00:00
'path' => storage_path('logs/laravel.log'),
'level' => 'debug',
2022-02-13 19:22:58 +00:00
'days' => 14,
2018-04-15 23:56:48 +00:00
],
'slack' => [
2018-08-28 03:07:36 +00:00
'driver' => 'slack',
'url' => env('LOG_SLACK_WEBHOOK_URL'),
2018-04-15 23:56:48 +00:00
'username' => 'Laravel Log',
2018-08-28 03:07:36 +00:00
'emoji' => ':boom:',
'level' => 'critical',
2018-04-15 23:56:48 +00:00
],
'stderr' => [
2018-08-28 03:07:36 +00:00
'driver' => 'monolog',
2022-02-13 19:22:58 +00:00
'level' => env('LOG_LEVEL', 'debug'),
2018-04-15 23:56:48 +00:00
'handler' => StreamHandler::class,
2022-02-13 19:22:58 +00:00
'formatter' => env('LOG_STDERR_FORMATTER'),
2018-08-28 03:07:36 +00:00
'with' => [
2018-04-15 23:56:48 +00:00
'stream' => 'php://stderr',
],
],
'syslog' => [
'driver' => 'syslog',
2022-02-13 19:22:58 +00:00
'level' => env('LOG_LEVEL', 'debug'),
2018-04-15 23:56:48 +00:00
],
'errorlog' => [
'driver' => 'errorlog',
2018-08-28 03:07:36 +00:00
'level' => 'debug',
2018-04-15 23:56:48 +00:00
],
2022-02-13 19:22:58 +00:00
'null' => [
'driver' => 'monolog',
'handler' => NullHandler::class,
],
'emergency' => [
'path' => storage_path('logs/laravel.log'),
],
2018-04-15 23:56:48 +00:00
],
];