From 540f1d24aa9625651c45d00cf5458392872ada1f Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 4 Nov 2023 16:42:10 -0500 Subject: add option to disable disk logging --- docs/config.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'docs') 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 -- cgit v1.2.3