mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-04-17 00:39:06 +08:00
Configurable log options
This commit is contained in:
parent
fa566f156a
commit
28f3cd296a
@ -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]).
|
||||
|
@ -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')),
|
||||
],
|
||||
],
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user