Class: Log4r::Configurator
- Inherits:
-
Object
- Object
- Log4r::Configurator
- 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
-
.decode_outputter(e) ⇒ Object
Decodes an outputter as normal, but also sets @default if it was defined in the given configuration file.
- .orig_decode_outputter ⇒ Object
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_outputter ⇒ Object
7 |
# File 'lib/easy_log4r/configurator.rb', line 7 alias :orig_decode_outputter :decode_outputter |