From 573cd06bb1fc0458ad7d2f7a478afd13e5f56507 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Mon, 23 Feb 2026 00:29:45 -0500 Subject: [PATCH] feat: add logging and timestamp options to NatsOptions --- src/NATS.Server/NatsOptions.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/NATS.Server/NatsOptions.cs b/src/NATS.Server/NatsOptions.cs index 0aee913..f4a8c1a 100644 --- a/src/NATS.Server/NatsOptions.cs +++ b/src/NATS.Server/NatsOptions.cs @@ -47,6 +47,17 @@ public sealed class NatsOptions public string? PortsFileDir { get; set; } public string? ConfigFile { get; set; } + // Logging + public string? LogFile { get; set; } + public long LogSizeLimit { get; set; } + public int LogMaxFiles { get; set; } + public bool Debug { get; set; } + public bool Trace { get; set; } + public bool Logtime { get; set; } = true; + public bool LogtimeUTC { get; set; } + public bool Syslog { get; set; } + public string? RemoteSyslog { get; set; } + // Profiling (0 = disabled) public int ProfPort { get; set; }