misc_pterodactyl-panel/config/logging.php

118 lines
3.6 KiB
PHP
Raw Normal View History

2018-05-10 21:13:23 +00:00
<?php
use Monolog\Handler\NullHandler;
2018-05-10 21:13:23 +00:00
use Monolog\Handler\StreamHandler;
2022-02-26 16:15:20 +00:00
use Monolog\Handler\SyslogUdpHandler;
2018-05-10 21:13:23 +00:00
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', 'daily'),
2022-02-26 16:15:20 +00:00
/*
|--------------------------------------------------------------------------
| Deprecations Log Channel
|--------------------------------------------------------------------------
|
| This option controls the log channel that should be used to log warnings
| regarding deprecated PHP and library features. This allows you to get
| your application ready for upcoming major versions of dependencies.
|
*/
'deprecations' => env('LOG_DEPRECATIONS_CHANNEL', 'null'),
2018-05-10 21:13:23 +00:00
/*
|--------------------------------------------------------------------------
| 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' => [
'driver' => 'stack',
'channels' => ['single'],
2022-02-26 16:15:20 +00:00
'ignore_exceptions' => false,
2018-05-10 21:13:23 +00:00
],
'single' => [
'driver' => 'single',
'path' => storage_path('logs/laravel.log'),
2022-02-26 16:15:20 +00:00
'level' => env('LOG_LEVEL', 'debug'),
2018-05-10 21:13:23 +00:00
],
'daily' => [
'driver' => 'daily',
'path' => storage_path('logs/laravel.log'),
2022-02-26 16:15:20 +00:00
'level' => env('LOG_LEVEL', 'debug'),
'days' => 14,
2018-05-10 21:13:23 +00:00
],
'slack' => [
'driver' => 'slack',
'url' => env('LOG_SLACK_WEBHOOK_URL'),
'username' => 'Laravel Log',
'emoji' => ':boom:',
2022-02-26 16:15:20 +00:00
'level' => env('LOG_LEVEL', 'critical'),
],
'papertrail' => [
'driver' => 'monolog',
'level' => env('LOG_LEVEL', 'debug'),
'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class),
'handler_with' => [
'host' => env('PAPERTRAIL_URL'),
'port' => env('PAPERTRAIL_PORT'),
'connectionString' => 'tls://' . env('PAPERTRAIL_URL') . ':' . env('PAPERTRAIL_PORT'),
],
2018-05-10 21:13:23 +00:00
],
'stderr' => [
'driver' => 'monolog',
2022-02-26 16:15:20 +00:00
'level' => env('LOG_LEVEL', 'debug'),
2018-05-10 21:13:23 +00:00
'handler' => StreamHandler::class,
2022-02-26 16:15:20 +00:00
'formatter' => env('LOG_STDERR_FORMATTER'),
2018-05-10 21:13:23 +00:00
'with' => [
'stream' => 'php://stderr',
],
],
'syslog' => [
'driver' => 'syslog',
2022-02-26 16:15:20 +00:00
'level' => env('LOG_LEVEL', 'debug'),
2018-05-10 21:13:23 +00:00
],
'errorlog' => [
'driver' => 'errorlog',
2022-02-26 16:15:20 +00:00
'level' => env('LOG_LEVEL', 'debug'),
2018-05-10 21:13:23 +00:00
],
'null' => [
'driver' => 'monolog',
'handler' => NullHandler::class,
],
2022-02-26 16:15:20 +00:00
'emergency' => [
'path' => storage_path('logs/laravel.log'),
],
2018-05-10 21:13:23 +00:00
],
];