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

Version Path
dafiti-rabbit-hutch-0.1.12 lib/logger.rb
dafiti-rabbit-hutch-0.1.11 lib/logger.rb
dafiti-rabbit-hutch-0.1.10 lib/logger.rb
dafiti-rabbit-hutch-0.1.9 lib/logger.rb
dafiti-rabbit-hutch-0.1.5 lib/logger.rb
dafiti-rabbit-hutch-0.1.4 lib/logger.rb
dafiti-rabbit-hutch-0.1.1 lib/logger.rb
dafiti-rabbit-hutch-0.1.0 lib/logger.rb
rabbithutch-0.1.5 lib/logger.rb
rabbithutch-0.1.2 lib/logger.rb
rabbithutch-0.1.1 lib/logger.rb
rabbithutch-0.1.0 lib/logger.rb
rabbithutch-0.0.9 lib/logger.rb
rabbithutch-0.0.8 lib/logger.rb