Skip to content

Commit be2bebf

Browse files
committed
adding logging configurations to Config options table
1 parent a4cf409 commit be2bebf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/config.md

+3
Original file line numberDiff line numberDiff line change
@@ -1428,6 +1428,9 @@ variable before running the `ntfy` command (e.g. `export NTFY_LISTEN_HTTP=:80`).
14281428
| `web-push-file` | `NTFY_WEB_PUSH_FILE` | *string* | - | Web Push: Database file that stores subscriptions |
14291429
| `web-push-email-address` | `NTFY_WEB_PUSH_EMAIL_ADDRESS` | *string* | - | Web Push: Sender email address |
14301430
| `web-push-startup-queries` | `NTFY_WEB_PUSH_STARTUP_QUERIES` | *string* | - | Web Push: SQL queries to run against subscription database at startup |
1431+
| `log-format` | `NTFY_LOG_FORMAT` | *string* | `text` | Defines the output format, can be text or json |
1432+
| `log-file` | `NTFY_LOG_FILE` | *string* | - | Defines the filename to write logs to. If this is not set, ntfy logs to stderr |
1433+
| `log-level` | `NTFY_LOG_LEVEL` | *string* | `info` | Defines the default log level, can be one of trace, debug, info, warn or error |
14311434

14321435
The format for a *duration* is: `<number>(smhd)`, e.g. 30s, 20m, 1h or 3d.
14331436
The format for a *size* is: `<number>(GMK)`, e.g. 1G, 200M or 4000k.

0 commit comments

Comments
 (0)