| Class | Logging::Config::YamlConfigurator |
| In: |
lib/logging/config/yaml_configurator.rb
|
| Parent: | Object |
The YamlConfigurator class is used to configure the Logging framework using information found in a YAML file.
Load the given YAML file and use it to configure the Logging framework. The file can be either a filename, and open File, or an IO object. If it is the latter two, the File / IO object will not be closed by this method.
The configuration will be loaded from the given key in the YAML stream.
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.