Skip to content

Commit

Permalink
log_stdout 모듈 기본 설정값 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
bhtak committed Aug 14, 2020
1 parent 9247ee5 commit 4c9d4ef
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/install/log_stdout.settings.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
format: '!base_url|!timestamp|!type|!ip|!request_uri|!referer|!uid|!link|!message'
format: '@base_url|@timestamp|@type|@ip|@request_uri|@referer|@uid|@link|@message'
12 changes: 11 additions & 1 deletion src/Form/LogStdoutConfigForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,17 @@ public function buildForm(array $form, FormStateInterface $form_state) {
'#type' => 'textarea',
'#title' => $this->t('Log format'),
'#default_value' => $config->get('format'),
'#description' => t('Specify the format of the log entry. Available variables are: <dl><dt><code>!base_url</code></dt><dd>Base URL of the site.</dd><dt><code>!timestamp</code></dt><dd>Unix timestamp of the log entry.</dd><dt><code>!type</code></dt><dd>The category to which this message belongs.</dd><dt><code>!ip</code></dt><dd>IP address of the user triggering the message.</dd><dt><code>!request_uri</code></dt><dd>The requested URI.</dd><dt><code>!referer</code></dt><dd>HTTP Referer if available.</dd><dt><code>!severity</code></dt><dd>The severity level of the event; ranges from 0 (Emergency) to 7 (Debug).</dd><dt><code>!uid</code></dt><dd>User ID.</dd><dt><code>!link</code></dt><dd>A link to associate with the message.</dd><dt><code>!message</code></dt><dd>The message to store in the log.</dd></dl>'),
'#description' => t('Specify the format of the log entry. Available variables are: <dl>' .
'<dt><code>@base_url</code></dt><dd>Base URL of the site.</dd>'.
'<dt><code>@timestamp</code></dt><dd>Unix timestamp of the log entry.</dd>'.
'<dt><code>@type</code></dt><dd>The category to which this message belongs.</dd>'.
'<dt><code>@ip</code></dt><dd>IP address of the user triggering the message.</dd>'.
'<dt><code>@request_uri</code></dt><dd>The requested URI.</dd>'.
'<dt><code>@referer</code></dt><dd>HTTP Referer if available.</dd>'.
'<dt><code>@severity</code></dt><dd>The severity level of the event; ranges from 0 (Emergency) to 7 (Debug).</dd>'.
'<dt><code>@uid</code></dt><dd>User ID.</dd>'.
'<dt><code>@link</code></dt><dd>A link to associate with the message.</dd>'.
'<dt><code>@message</code></dt><dd>The message to store in the log.</dd></dl>'),
];

return $form;
Expand Down

0 comments on commit 4c9d4ef

Please sign in to comment.