Sha256: 0a46d9f04671afae6e555364ff39de66bb019246211918398e20c3af3b5206d3
Contents?: true
Size: 663 Bytes
Versions: 2
Compression:
Stored size: 663 Bytes
Contents
= Configuring Log4r with Log4r::YamlConfigurator The YamlConfigurator class allows one to set up Log4r via YAML. It is used almost exactly as Log4r::Configurator and has the same features, ycfg = YamlConfigurator # handy shorthand ycfg['foo'] = bar # replaces instances of #{foo} in the YAML with bar ycfg.load_yaml_file('foo.yaml') Ruby 1.7 and 1.8 comes with a YAML parser. Hence, YAML can be used to configure Log4r out of the box. A comprehensive example of a Log4r YAML configuration is provided in the examples directory. To use this class: require 'log4r-color/yamlconfigurator' Thanks to Andreas Hund for making this possible.
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
log4r-color-1.2.2 | lib/log4r-color/rdoc/yamlconfigurator |
log4r-color-1.2 | lib/log4r-color/rdoc/yamlconfigurator |