Class: Log4r::YamlConfigurator

Inherits:
Object
  • Object
show all
Defined in:
lib/easy_log4r/yamlconfigurator.rb

Overview

Extension of base Log4r::YamlConfigurator to enable decoding of a ‘default`

attribute in the Yaml definition.

Class Method Summary collapse

Class Method Details

.decode_outputter(op) ⇒ Object

Decodes an outputter as normal, but also sets @default if it was defined in the given configuration file.



12
13
14
15
# File 'lib/easy_log4r/yamlconfigurator.rb', line 12

def self.decode_outputter( op )
  orig_decode_outputter(op)
  Log4r::Outputter[op['name']].default = !!op['default']
end

.orig_decode_outputterObject



7
# File 'lib/easy_log4r/yamlconfigurator.rb', line 7

alias :orig_decode_outputter :decode_outputter