aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2023-11-04 17:10:51 -0500
committerGitHub <noreply@github.com>2023-11-04 17:10:51 -0500
commit7d2143412a6ef26a6142d4d71d4c64f0119e4815 (patch)
treeb14fdbe3c86d36a6ad083d7f7946bd0906d4bf97 /docs
parent8438098eb54bb586733bdeff8d675fed9f3744e8 (diff)
parent71bb7eb382491ac8a970fc73c84ca44d9c7bde7a (diff)
downloadslskd-7d2143412a6ef26a6142d4d71d4c64f0119e4815.tar.gz
Merge pull request #991 from slskd/logs
Add an option to disable logging to disk
Diffstat (limited to 'docs')
-rw-r--r--docs/config.md12
1 files changed, 8 insertions, 4 deletions
diff --git a/docs/config.md b/docs/config.md
index c6325cfd..bd4cc124 100644
--- a/docs/config.md
+++ b/docs/config.md
@@ -838,18 +838,22 @@ instance_name: default
## Loggers
-By default, the application logs to disk (`/logs` in the application directory). Logs can optionally be forwarded to external services, and the targets can be expanded to any service supported by a [Serilog Sink](https://github.com/serilog/serilog/wiki/Provided-Sinks). Support for targets is added on an as-needed basis and within reason.
+By default, the application logs to console and to disk (`/logs` in the application directory); disk logging can be disabled.
+
+Logs can optionally be forwarded to external services, and the targets can be expanded to any service supported by a [Serilog Sink](https://github.com/serilog/serilog/wiki/Provided-Sinks). Support for targets is added on an as-needed basis and within reason.
The current list of available targets is:
-| Command Line | Environment Variable | Description |
-| ------------ | -------------------------- | ---------------------------------- |
-| `--loki` | `SLSKD_LOKI` | The URL to a Grafana Loki instance |
+| Command Line | Environment Variable | Description |
+| ------------------ | -------------------------- | ---------------------------------- |
+| `--loki` | `SLSKD_LOKI` | The URL to a Grafana Loki instance |
+| `--no-disk-logger` | `SLSKD_NO_DISK_LOGGER` | Disable logging to disk |
#### **YAML**
```yaml
logger:
loki: ~
+ disk: true
```
## Metrics