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

class LogMessageSource in Tinman.Core.Logging

Abstract base class for ILogMessageSource implementations.

abstract class LogMessageSource implements ILogMessageSource

Public / Attributes

Severity

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

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

Public / Methods

AddHandler

Adds a log message handler to this log message source.

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

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.

public 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.
implements ILogMessageSource.ChangeSeverity

RemoveHandler

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

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

Protected / Attributes

severity

The current log message severity.

protected field severity
type LogSeverity

Remarks:

Subclasses must not modify this field directly (use Severity instead)!

Protected / Constructors

LogMessageSource

Creates a new instance of LogMessageSource.

protected constructor LogMessageSource (LogSeverity severity)
params severity The initial log message severity.

Protected / Methods

OnSeverityChanged

This method is called each time the value of Severity has changed.

protected virtual method OnSeverityChanged (bool updateDescendants, bool updateAncestors)
params updateDescendants Update severity levels in descendant sources?
  updateAncestors Update severity levels in ascendant sources?>