Exclude Log Levels

This commit is contained in:
2025-10-23 12:21:31 +02:00
parent 5c1e81d86a
commit 0b8e72fb7b
2 changed files with 55 additions and 0 deletions

View File

@@ -8,4 +8,8 @@ return [
'timeout_ms' => env('LOGHANDLER_TIMEOUT_MS', 3000),
'retry_times' => env('LOGHANDLER_RETRY_TIMES', 0),
'include_trace' => env('LOGHANDLER_INCLUDE_TRACE', false),
'excluded_levels' => array_values(array_filter(array_map(
static fn (string $level): string => strtolower($level),
array_map('trim', explode(',', (string) env('LOGHANDLER_EXCLUDE_LEVELS', 'debug,info')))
))),
];