You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/api/federation.en.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,8 @@ The default configuration can be found in `config/default.json`. The full refere
36
36
"to":"The address to send the email to in case of an error",
37
37
"from":"The address from which to send the email",
38
38
"sendWarnings":"Boolean. Set to true to also send email in case of warning. Default: false",
39
-
}
39
+
},
40
+
"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"
40
41
}
41
42
"port":"Port number on which the server will listen for incoming connections. Default: 3333",
42
43
"basePath":"The base path for the API endpoints",
@@ -51,6 +52,10 @@ The default configuration is merged with (and overridden by) environment-specifi
51
52
52
53
For development, in order to have a local configuration that overrides the existing config, it is recommended to create a `config/development.json` file.
53
54
55
+
### Logging
56
+
57
+
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.
58
+
54
59
### `collections` configuration key
55
60
56
61
The `collections` configuration key is an array containing URLs or specific collections. Each item in the collections array can be either a URL pointing to a JSON file containing Collections objects, or a Collection object.
0 commit comments