aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-10-10 13:00:11 -0500
committerGitHub <noreply@github.com>2026-10-10 13:00:11 -0500
commit71dcc7a60650b5a61d1d2a35609b65f3467d1396 (patch)
tree0f82ee968bc3a7eee8b92c44f4435e5bc9270653
parentf4edb6baa76bbe1465d30bd69de06d57e4d23c0c (diff)
parent9cb637bc5a212a12bd40ce8ab51ca9c695cbb887 (diff)
downloadslskd-71dcc7a60650b5a61d1d2a35609b65f3467d1396.tar.gz
Merge pull request #1876 from slskd/logs-docs
Reduce default log retention to 14 days, fix log docs
-rw-r--r--docs/config.md4
-rw-r--r--src/slskd/Core/Options.cs4
2 files changed, 4 insertions, 4 deletions
diff --git a/docs/config.md b/docs/config.md
index d811c0e0..d864458b 100644
--- a/docs/config.md
+++ b/docs/config.md
@@ -1351,7 +1351,7 @@ instance_name: default
## Logging Options and Configurable Loggers
-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.
+By default, the application logs to console with colors enabled, and to files in the `/logs` subdirectory of the application directory with extended timestamps and colors disabled.
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/.
@@ -1372,7 +1372,7 @@ The current list of available targets is:
```yaml
logger:
loki: ~
- disk: false
+ no_disk: false
no_color: false
```
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index f278d895..05eaed57 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -1500,8 +1500,8 @@ namespace slskd
/// <summary>
/// Gets the time to retain logs, in days.
/// </summary>
- [Range(7, maximum: int.MaxValue)]
- public int Logs { get; init; } = 30;
+ [Range(2, maximum: int.MaxValue)]
+ public int Logs { get; init; } = 14;
/// <summary>
/// Transfer retention options.