Class: Log4r::Configurator

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

Overview

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

attribute in the XML definition.

Class Method Summary collapse

Class Method Details

.decode_outputter(e) ⇒ 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/configurator.rb', line 12

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

.orig_decode_outputterObject



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

alias :orig_decode_outputter :decode_outputter