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

interface ILogMessageSource in Tinman.Core.Logging

Base interface for classes that generate log messages.

interface ILogMessageSource base of ILogger
  ILoggerCategory
  LogMessageSource

Attributes

Severity

Sets or gets the log message severity that shall be emitted for this log message source.

property Severity { get }
type LogSeverity
value The log message severity.

Methods

AddHandler

Adds a log message handler to this log message source.

method AddHandler ([Owner] ILogMessageHandler handler, bool replace = false)
type ILogMessageSource
params handler [not-null] The handler to add.
  replace Replace existing handler if redundant (see remarks)?
returns [not-null] this

Remarks:

If there already is a handler which makes the given one redundant (see IsRedundant), one of the following actions is performed:

ChangeSeverity

Changes the log message severity of this log message source.

method ChangeSeverity (LogSeverity severity, bool descendants = false, bool ancestors = false)
params severity The new log message severity.
  descendants Also set all descendant log message sources to the given log message severity? Defaults to false.
  ancestors Set the log message severity of all ancestor log message sources to the given log message severity if less detailed? Defaults to false.

RemoveHandler

Removes the given log message handle from this log message source.

method RemoveHandler (ILogMessageHandler handler)
type ILogMessageSource
params handler [not-null] The handler to remove.
returns [not-null] this