aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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>