1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-25 01:05:36 +00:00
pixelfed/config/logging.php

82 lines
2.2 KiB
PHP
Raw Normal View History

2018-04-15 23:56:48 +00:00
<?php
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'],
],
'single' => [
'driver' => 'single',
2018-08-28 03:07:36 +00:00
'path' => storage_path('logs/laravel.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',
'days' => 7,
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',
2018-04-15 23:56:48 +00:00
'handler' => StreamHandler::class,
2018-08-28 03:07:36 +00:00
'with' => [
2018-04-15 23:56:48 +00:00
'stream' => 'php://stderr',
],
],
'syslog' => [
'driver' => 'syslog',
2018-08-28 03:07:36 +00:00
'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
],
],
];