Sha256: ed49f76ea8d8dfa77613e489fd4b0e597dfac4e550afcf05d8df89e866f49bb3
Contents?: true
Size: 334 Bytes
Versions: 14
Compression:
Stored size: 334 Bytes
Contents
require 'log4r' require 'log4r/yamlconfigurator' require 'log4r/outputter/syslogoutputter' class Logger @@log = nil def self.init(config) if !@@log.nil? return @@log end configurator = Log4r::YamlConfigurator configurator.decode_yaml config.log_config @@log = Log4r::Logger['main'] end end
Version data entries
14 entries across 14 versions & 2 rubygems