Skip to content

Commit 3c3733c

Browse files
committed
Adapt log format
1 parent 26056fc commit 3c3733c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/services.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@
163163
$services->set('security.acl.permission.map', AdminPermissionMap::class);
164164

165165
// Custom formatting for our logs
166-
$logFormat = "[%%datetime%%] %%channel%%.%%level_name%%: %%message%% %%context%% %%extra%%\n[Client IP: %%extra.client_ip%%, User Agent: %%extra.user_agent%%, Session User: %%extra.session_user%%]";
166+
$logFormat = "[%%datetime%%] %%level_name%% %%channel%%: %%message%% | ip=%%extra.client_ip%% user=%%extra.session_user%% %%context%% %%extra%%\n";
167167
$services->set('monolog.formatter.catrobat_custom_formatter', LineFormatter::class)
168168
->args([$logFormat, null, true, false])
169169
->call('includeStacktraces', [true])

0 commit comments

Comments
 (0)