diff options
| author | JP Dillingham <jp@dillingham.me> | 2023-11-04 16:42:10 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2023-11-04 16:42:10 -0500 |
| commit | 540f1d24aa9625651c45d00cf5458392872ada1f (patch) | |
| tree | d73d5a8fae65cff9cd27f36a04196f77a540a460 /src | |
| parent | 8438098eb54bb586733bdeff8d675fed9f3744e8 (diff) | |
| download | slskd-540f1d24aa9625651c45d00cf5458392872ada1f.tar.gz | |
add option to disable disk logging
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Core/Options.cs | 9 |
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> |
