Configurable log options

This commit is contained in:
Koštíř Miloslav 2025-04-07 16:44:10 +02:00
parent fa566f156a
commit 28f3cd296a
No known key found for this signature in database
GPG Key ID: A7C30D95081AC1A9
2 changed files with 11 additions and 5 deletions

View File

@ -54,6 +54,12 @@ APP_THEME=false
# Can alternatively be set to "*" to trust all proxy addresses.
APP_PROXIES=null
# Log details
# This option defines the default log channel that gets used when writing
# messages to the logs. You can specify LOG_PATH and LOG_DAYS as well.
# See configuration file app/Config/logging.php.
LOG_CHANNEL=single
# Database details
# Host can contain a port (localhost:3306) or a separate DB_PORT option can be used.
# An ipv6 address can be used via the square bracket format ([::1]).

View File

@ -47,17 +47,17 @@ return [
'single' => [
'driver' => 'single',
'path' => storage_path('logs/laravel.log'),
'path' => env('LOG_PATH', storage_path('logs/laravel.log')),
'level' => 'debug',
'days' => 14,
'days' => env('LOG_DAYS', 14),
'replace_placeholders' => true,
],
'daily' => [
'driver' => 'daily',
'path' => storage_path('logs/laravel.log'),
'path' => env('LOG_PATH', storage_path('logs/laravel.log')),
'level' => 'debug',
'days' => 7,
'days' => env('LOG_DAYS', 7),
'replace_placeholders' => true,
],
@ -111,7 +111,7 @@ return [
],
'emergency' => [
'path' => storage_path('logs/laravel.log'),
'path' => env('LOG_PATH', storage_path('logs/laravel.log')),
],
],