Skip to content

Commit 4aa86a5

Browse files
committed
Update default parameters
1 parent b55ca2d commit 4aa86a5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/PluginHttpLoggerConfiguration.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ class PluginHttpLoggerConfiguration extends PluginConfiguration implements Plugi
2424
public const CFG_LOGGER_ERROR = 'MICRO_HTTP_LOGGER_ERROR';
2525
public const CFG_DECORATION_WEIGHT = 'MICRO_HTTP_LOGGER_DECORATION_WEIGHT';
2626

27-
public const CFG_HTTP_LOGGER_ACCESS_FORMAT = '';
28-
public const CFG_HTTP_LOGGER_ERROR_FORMAT = '';
29-
public const LOGGER_ERROR_FORMAT_DEFAULT = '';
30-
public const LOGGER_ACCESS_FORMAT_DEFAULT = '';
27+
public const CFG_HTTP_LOGGER_ACCESS_FORMAT = 'MICRO_HTTP_LOGGER_ACCESS_FORMAT';
28+
public const CFG_HTTP_LOGGER_ERROR_FORMAT = 'MICRO_HTTP_LOGGER_ERROR_FORMAT';
29+
public const LOGGER_ERROR_FORMAT_DEFAULT = '{{remote_addr}} - {{remote_user}} [{{time}}] "{{request}}" {{status}}';
30+
public const LOGGER_ACCESS_FORMAT_DEFAULT = '{{remote_addr}} - {{remote_user}} [{{time}}] "{{request}}" {{status}} {{http_referer}} {{http_user_agent}}';
3131

3232
public const DECORATION_DEFAULT = 10;
3333

0 commit comments

Comments
 (0)