mirror of
https://github.com/n8n-io/n8n-docs.git
synced 2026-03-27 09:28:43 +07:00
document N8N_LOG_FORMAT (#3215)
Co-authored-by: Justin Ellingwood <justin@n8n.io>
This commit is contained in:
@@ -23,6 +23,7 @@ This page lists environment variables to set up logging for debugging. Refer to
|
||||
| :------- | :---- | :------- | :---------- |
|
||||
| `N8N_LOG_LEVEL` | Enum string: `info`, `warn`, `error`, `debug` | `info` | Log output level. Refer to [Log levels](/hosting/logging-monitoring/logging.md#log-levels) for details. |
|
||||
| `N8N_LOG_OUTPUT` | Enum string: `console`, `file` | `console` | Where to output logs. Provide multiple values as a comma-separated list. |
|
||||
| `N8N_LOG_FORMAT` | Enum string: `text`, `json` | `text` | The log format to use. `text` prints human readable messages. `json` prints one JSON object per line containing the message, level, timestamp, and all metadata. This is useful for production monitoring as well as debugging. |
|
||||
| `N8N_LOG_FILE_COUNT_MAX` | Number | `100` | Max number of log files to keep. |
|
||||
| `N8N_LOG_FILE_SIZE_MAX` | Number | `16` | Max size of each log file in MB. |
|
||||
| `N8N_LOG_FILE_LOCATION` | String | `<n8n-directory-path>/logs/n8n.log` | Log file location. Requires N8N_LOG_OUTPUT set to `file`. |
|
||||
|
||||
Reference in New Issue
Block a user