Skip to content

Commit 03b5a5b

Browse files
authored
Document logger.timestampPrefix config (#151)
2 parents d888da3 + ef48699 commit 03b5a5b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

content/_index.en.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,8 @@ The default configuration can be found in `config/default.json`. The full refere
323323
"to": "The address to send the email to in case of an error",
324324
"from": "The address from which to send the email",
325325
"sendWarnings": "Boolean. Set to true to also send email in case of warning",
326-
}
326+
},
327+
"timestampPrefix": "Boolean. Set to true to prefix the timestamp of the error message with the current date (in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ); see below"
327328
},
328329
"reporter": { // Reporter mechanism to create GitHub issues when terms content is inaccessible
329330
"githubIssues": {
@@ -351,6 +352,10 @@ The default configuration is merged with (and overridden by) environment-specifi
351352

352353
For development, in order to have a local configuration that overrides the existing config, it is recommended to create a `config/development.json` file.
353354

355+
#### Logging
356+
357+
Setting `logger.timestampPrefix` to `false` can be useful when logs are being collected by a process manager (like PM2) that already adds timestamps to log entries. This avoids duplicate timestamps in the logs.
358+
354359
#### Schedules
355360

356361
Schedules for tracking and dataset publication are defined using Cron expressions.

0 commit comments

Comments
 (0)