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.
- Listed in Console, logging and analytics
- Inherits or implements
TargetWithLayout - Attributes
Target
Constructors
| Member | What it is |
|---|---|
ServerConsoleLogTarget() | Creates a ServerConsoleLogTarget with default values. |
Events
| Member | What it is |
|---|---|
static event LogHandler LogSent | Raised with the rendered message and level. Used by the on-screen consoles. |
static event RawLogHandler LogSentRaw | Raised with the raw log event. Used by ConsoleLogEvents and ClientLogSender. |
Methods
| Member | What it is |
|---|---|
protected override void Write(LogEventInfo logEvent) | Raises LogSent, then LogSentRaw. |