Class ServerLogsOptions
Live server-log room settings, bound from the "ServerLogs" config section (env override:
ServerLogs__Enabled etc.). When enabled, a read-only system channel is auto-created
and log events are streamed to it live — log lines are never stored as messages in the
database; the rolling Serilog log files remain the only persistence.
public sealed class ServerLogsOptions
- Inheritance
-
ServerLogsOptions
- Inherited Members
Constructors
ServerLogsOptions()
public ServerLogsOptions()
Properties
BacklogLines
How many recent log entries are replayed from the log file when someone opens the room.
public int BacklogLines { get; set; }
Property Value
Enabled
Master switch for the live log room.
public bool Enabled { get; set; }
Property Value
LogDirectory
Directory holding the rolling log files. Must match the Serilog file sink's path.
public string LogDirectory { get; set; }
Property Value
LogFilePattern
Filename glob for the rolling log files inside LogDirectory.
public string LogFilePattern { get; set; }
Property Value
MinLevel
Minimum level of log events streamed to the room (Verbose/Debug/Information/Warning/ Error/Fatal). Only affects the room — file and console sinks keep their own levels.
public LogEventLevel MinLevel { get; set; }
Property Value
- LogEventLevel
MinRole
Minimum server role allowed to see and join the log room (Member/Mod/Admin/Owner).
public ServerRole MinRole { get; set; }
Property Value
NormalizedRoomName
Channel names are stored lowercased; compare against this form.
public string NormalizedRoomName { get; }
Property Value
RoomName
Name of the auto-created system channel. Must satisfy the normal channel-name rules; the name is reserved — users cannot create a channel with it.
public string RoomName { get; set; }