Sha256: 58bb20fb61864a4558a97223b742b0eafb73be89da50267073686d25e8938800

Contents?: true

Size: 657 Bytes

Versions: 137

Compression:

Stored size: 657 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/yamlconfigurator'

Thanks to Andreas Hund for making this possible.

Version data entries

137 entries across 99 versions & 18 rubygems

Version Path
depengine-0.0.27 etc/isolate/ruby-1.8/gems/log4r-1.1.8/lib/log4r/rdoc/yamlconfigurator
depengine-0.0.26 etc/isolate/jruby-1.8/gems/log4r-1.1.8/lib/log4r/rdoc/yamlconfigurator
depengine-0.0.26 etc/isolate/ruby-1.8/gems/log4r-1.1.8/lib/log4r/rdoc/yamlconfigurator
depengine-0.0.25 etc/isolate/ruby-1.8/gems/log4r-1.1.8/lib/log4r/rdoc/yamlconfigurator
depengine-0.0.25 etc/isolate/jruby-1.8/gems/log4r-1.1.8/lib/log4r/rdoc/yamlconfigurator
depengine-0.0.24 etc/isolate/ruby-1.8/gems/log4r-1.1.8/lib/log4r/rdoc/yamlconfigurator
depengine-0.0.24 etc/isolate/jruby-1.8/gems/log4r-1.1.8/lib/log4r/rdoc/yamlconfigurator
depengine-0.0.23 etc/isolate/ruby-1.8/gems/log4r-1.1.8/lib/log4r/rdoc/yamlconfigurator
depengine-0.0.23 etc/isolate/jruby-1.8/gems/log4r-1.1.8/lib/log4r/rdoc/yamlconfigurator
depengine-0.0.22 etc/isolate/jruby-1.8/gems/log4r-1.1.8/lib/log4r/rdoc/yamlconfigurator
depengine-0.0.22 etc/isolate/ruby-1.8/gems/log4r-1.1.8/lib/log4r/rdoc/yamlconfigurator
depengine-0.0.21 etc/isolate/ruby-1.8/gems/log4r-1.1.8/lib/log4r/rdoc/yamlconfigurator
depengine-0.0.21 etc/isolate/jruby-1.8/gems/log4r-1.1.8/lib/log4r/rdoc/yamlconfigurator
depengine-0.0.20 etc/isolate/jruby-1.8/gems/log4r-1.1.8/lib/log4r/rdoc/yamlconfigurator
depengine-0.0.20 etc/isolate/ruby-1.8/gems/log4r-1.1.8/lib/log4r/rdoc/yamlconfigurator
depengine-0.0.19 etc/isolate/jruby-1.8/gems/log4r-1.1.8/lib/log4r/rdoc/yamlconfigurator
depengine-0.0.19 etc/isolate/ruby-1.8/gems/log4r-1.1.8/lib/log4r/rdoc/yamlconfigurator
mtn_log4r-1.1.12 lib/log4r/rdoc/yamlconfigurator
mtn_log4r-1.1.11 lib/log4r/rdoc/yamlconfigurator
vinted-log4r-1.1.11 lib/log4r/rdoc/yamlconfigurator