Sha256: 10503e04f85969ebaac51427b0f376af7616b8297803241b96a20244fa9dcd48

Contents?: true

Size: 658 Bytes

Versions: 62

Compression:

Stored size: 658 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

62 entries across 54 versions & 13 rubygems

Version Path
vagrant-unbundled-2.2.19.0 vendor/bundle/ruby/3.0.0/gems/log4r-1.1.10/lib/log4r/rdoc/log4jxmlformatter
vagrant-unbundled-2.2.18.0 vendor/bundle/ruby/3.0.0/gems/log4r-1.1.10/lib/log4r/rdoc/log4jxmlformatter
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/2.7.0/gems/log4r-1.1.10/lib/log4r/rdoc/log4jxmlformatter
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/3.0.0/gems/log4r-1.1.10/lib/log4r/rdoc/log4jxmlformatter
vagrant-unbundled-2.2.14.0 vendor/bundle/ruby/2.7.0/gems/log4r-1.1.10/lib/log4r/rdoc/log4jxmlformatter
vagrant-unbundled-2.2.10.0 vendor/bundle/ruby/2.7.0/gems/log4r-1.1.10/lib/log4r/rdoc/log4jxmlformatter
vagrant-unbundled-2.2.9.0 vendor/bundle/ruby/2.7.0/gems/log4r-1.1.10/lib/log4r/rdoc/log4jxmlformatter
vagrant-unbundled-2.2.8.0 vendor/bundle/ruby/2.7.0/gems/log4r-1.1.10/lib/log4r/rdoc/log4jxmlformatter
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/log4r-1.1.10/lib/log4r/rdoc/log4jxmlformatter
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.7.0/gems/log4r-1.1.10/lib/log4r/rdoc/log4jxmlformatter
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.6.0/gems/log4r-1.1.10/lib/log4r/rdoc/log4jxmlformatter
vagrant-unbundled-2.2.6.2 vendor/bundle/ruby/2.6.0/gems/log4r-1.1.10/lib/log4r/rdoc/log4jxmlformatter
vagrant-unbundled-2.2.6.1 vendor/bundle/ruby/2.6.0/gems/log4r-1.1.10/lib/log4r/rdoc/log4jxmlformatter
vagrant-unbundled-2.2.6.0 vendor/bundle/ruby/2.6.0/gems/log4r-1.1.10/lib/log4r/rdoc/log4jxmlformatter
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/gems/log4r-1.1.10/lib/log4r/rdoc/log4jxmlformatter
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.6.0/gems/log4r-1.1.10/lib/log4r/rdoc/log4jxmlformatter
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.6.0/gems/log4r-1.1.10/lib/log4r/rdoc/log4jxmlformatter
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.5.0/gems/log4r-1.1.10/lib/log4r/rdoc/log4jxmlformatter
vagrant-unbundled-2.2.3.0 vendor/bundle/ruby/2.5.0/gems/log4r-1.1.10/lib/log4r/rdoc/log4jxmlformatter
vagrant-unbundled-2.2.2.0 vendor/bundle/ruby/2.5.0/gems/log4r-1.1.10/lib/log4r/rdoc/log4jxmlformatter