Skip to main content

ServerConsoleLogTarget

A class in Root.Township, Alta.Logging.Targets.

NLog target ServerConsoleTarget that raises static events for each log line. The console display, runtime console, console log events and client log sender listen to it.

Constructors​

MemberWhat it is
ServerConsoleLogTarget()Creates a ServerConsoleLogTarget with default values.

Events​

MemberWhat it is
static event LogHandler LogSentRaised with the rendered message and level. Used by the on-screen consoles.
static event RawLogHandler LogSentRawRaised with the raw log event. Used by ConsoleLogEvents and ClientLogSender.

Methods​

MemberWhat it is
protected override void Write(LogEventInfo logEvent)Raises LogSent, then LogSentRaw.