TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

class SeverityMessageHandler in Tinman.Core.Logging

An implementation of ILogMessageHandler that forwards log messages to an aggregated message handler up to a given log severity (e.g. up to Common, skipping Info and following).

sealed class SeverityMessageHandler implements ILogMessageHandler

Public / Constructors

SeverityMessageHandler

Creates a new instance of SeverityMessageHandler.

public constructor SeverityMessageHandler (ILogMessageHandler handler, LogSeverity severity)
params handler [not-null] The log message handler.
  severity The maximum log severity to forward to handler

Public / Methods

HandleLogMessage

Handles the given log message.

public method HandleLogMessage (ILogger source, LogSeverity logSeverity, string logMessage)
params source [not-null] The ILogger that has been used to emit the log message.
  logSeverity The LogSeverity of the log message.
  logMessage [not-null] The log message
implements ILogMessageHandler.HandleLogMessage

Remarks:

All exceptions that are thrown by implementing methods are dropped silently.

IsRedundant

Checks if this log message handler is redundant if the given one is already present.

public method IsRedundant (ILogMessageHandler other)
type bool
params other [not-null] The other handler.
returns true if this log message handler is redundant, false if not.
implements ILogMessageHandler.IsRedundant

Severity

Changes the maximum log severity of this handler.

public method Severity (LogSeverity severity)
type ILogMessageHandler
params severity The new maximum log severity.
returns [not-null] The resulting log message handler.
implements ILogMessageHandler.Severity