Class: Logger
- Inherits:
-
Object
- Object
- Logger
- Defined in:
- lib/logger.rb
Constant Summary collapse
- @@log =
nil
Class Method Summary collapse
Class Method Details
.init(config) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/logger.rb', line 7 def self.init(config) if !@@log.nil? return @@log end configurator = Log4r::YamlConfigurator configurator.decode_yaml config.log_config @@log = Log4r::Logger['main'] end |