Sha256: 8564f9fb8a21777ecd2355f1691b38fec76fc93fa2cefe28118ac2181a845099

Contents?: true

Size: 616 Bytes

Versions: 14

Compression:

Stored size: 616 Bytes

Contents

# Copyright (C) 2008-2011 AMEE UK Ltd. - http://www.amee.com
# Released as Open Source Software under the BSD 3-Clause license. See LICENSE.txt for details.

# Log4r logger for AMEE rubgem
# by default, just log to stderr
# clients can change this thus
# AMEE::Log.to logtothis

module AMEE
  class Logger
    def self.log
      @@log ||= setup_logger
    end
    def self.to(log)
      @@log=log
    end
    
    private
    def self.setup_logger
      log = Log4r::Logger.new('AMEERuby')
      log.outputters = [Log4r::StderrOutputter.new('AMEERubyStdout')]
      log.level=Log4r::WARN
      log
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
amee-4.4.0 lib/amee/logger.rb
amee-4.3.2 lib/amee/logger.rb
amee-4.3.1 lib/amee/logger.rb
amee-4.3.0 lib/amee/logger.rb
amee-4.2.0 lib/amee/logger.rb
amee-4.1.7 lib/amee/logger.rb
amee-4.1.6 lib/amee/logger.rb
amee-4.1.5 lib/amee/logger.rb
amee-4.1.4 lib/amee/logger.rb
amee-4.1.3 lib/amee/logger.rb
amee-4.1.2 lib/amee/logger.rb
amee-4.1.1 lib/amee/logger.rb
amee-4.1.0 lib/amee/logger.rb
amee-4.0.0 lib/amee/logger.rb