Skip to main content

ConsoleCommandsLogTarget

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

NLog target ConsoleCommandsTarget that raises static events for each log line. Remote console connections listen to it to send logs to their client.

Constructors​

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

Events​

MemberWhat it is
static event LogHandler LogSentRaised with the rendered message and level.
static event RawLogHandler LogSentRawRaised with the raw log event. Each ClientCommandHandler listens to send it over the remote console.

Methods​

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