aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2024-06-23 18:51:27 -0500
committerGitHub <noreply@github.com>2024-06-23 18:51:27 -0500
commit1e33bcab3788bb93361bab0bba6a72277285591d (patch)
tree55b51bb500d56aa8ba97278cae96fc01056f4b57 /docs
parent96f3dafb1cff11275cecd7139993710ed7e3f8ca (diff)
parent5ee509263e5cbd327108c3604dd41910cdfa87c6 (diff)
downloadslskd-1e33bcab3788bb93361bab0bba6a72277285591d.tar.gz
Merge pull request #1155 from slskd/colors
Add the ability to disable console log coloring
Diffstat (limited to 'docs')
-rw-r--r--docs/config.md15
1 files changed, 11 insertions, 4 deletions
diff --git a/docs/config.md b/docs/config.md
index d148d218..57e8eeb4 100644
--- a/docs/config.md
+++ b/docs/config.md
@@ -1001,9 +1001,16 @@ The instance name uniquely identifies the running instance of the application. I
instance_name: default
```
-## Loggers
+## Logging Options and Configurable Loggers
-By default, the application logs to console and to disk (`/logs` in the application directory); disk logging can be disabled.
+By default, the application logs to console with colors enabled. Logging to disk is optional, and if enabled, logs will be written to `/logs` in the application directory.
+
+Console colors can be disabled via typical application configuration described below, or by setting the environment variable `NO_COLOR` in accordance with https://no-color.org/.
+
+| Command Line | Environment Variable | Description |
+| ------------------ | ------------------------------ | ---------------------------------- |
+| `--disk-logger` | `SLSKD_DISK_LOGGER` | Enable logging to disk |
+| `--no-color` | `SLSKD_NO_COLOR` or `NO_COLOR` | Disable console log colors |
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.
@@ -1012,13 +1019,13 @@ The current list of available targets is:
| 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
+ disk: false
+ no_color: false
```
## Metrics