Class Logging::Config::Configurator
In: lib/logging/config/configurator.rb
Parent: Object

The Configurator class is used to configure the Logging framework using information found in a block of Ruby code. This block is evaluated in the context of the configurator‘s DSL.

Methods

appender   appenders   layout   load   loggers   pre_config   process  

Classes and Modules

Class Logging::Config::Configurator::DSL
Class Logging::Config::Configurator::Error
Class Logging::Config::Configurator::TopLevelDSL

Public Class methods

Public Instance methods

Creates a new Appender based on the given config options (a hash). The type of Appender created is determined by the ‘type’ option in the config. The remaining config options are passed to the Appender initializer.

The config options can also contain a ‘layout’ option. This should be another set of options used to create a Layout for this Appender.

Given an array of Appender configurations, this method will iterate over each and create the Appender(s).

Creates a new Layout based on the given config options (a hash). The type of Layout created is determined by the ‘type’ option in the config. The remaining config options are passed to the Layout initializer.

Loads the configuration from the block and configures the Logging gem.

Given an array of Logger configurations, this method will iterate over each and create the Logger(s).

Configures the logging levels, object format style, and root logging level.

[Validate]