aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core
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 /src/slskd/Core
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 'src/slskd/Core')
-rw-r--r--src/slskd/Core/Options.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index 85cf133e..62334742 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -1082,6 +1082,15 @@ namespace slskd
[Description("optional; url to a Grafana Loki instance to which to log")]
[RequiresRestart]
public string Loki { get; init; } = null;
+
+ /// <summary>
+ /// Gets a value indicating whether to write logs to disk.
+ /// </summary>
+ [Argument(default, "no-disk-logger")]
+ [EnvironmentVariable("NO_DISK_LOGGER")]
+ [Description("disable logging to disk")]
+ [RequiresRestart]
+ public bool Disk { get; init; } = true;
}
/// <summary>