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 --- src/slskd/Core/Options.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') 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; + + /// + /// Gets a value indicating whether to write logs to disk. + /// + [Argument(default, "no-disk-logger")] + [EnvironmentVariable("NO_DISK_LOGGER")] + [Description("disable logging to disk")] + [RequiresRestart] + public bool Disk { get; init; } = true; } /// -- cgit v1.2.3