Class Rex::Logging::LogDispatcher
In: lib/rex/logging/log_dispatcher.rb
Parent: Object

The log dispatcher associates log sources with log sinks. A log source is a unique identity that is associated with one and only one log sink. For instance, the framework-core registers the ‘core‘

Methods

[]   []=   delete   get_level   log   new   set_level   store  

Public Class methods

Creates the global log dispatcher instance and initializes it for use.

Public Instance methods

Returns the sink that is associated with the supplied source.

Calls the source association routie.

Removes a source association if one exists.

This method returns the log level threshold of a given source.

Performs the actual log operation against the supplied source

This method sets the log level threshold for a given source.

Associates the supplied source with the supplied sink. If a log level has already been defined for the source, the level argument is ignored. Use set_log_level to alter it.

[Validate]