Sha256: eaef23b47da43ced41b2118005254ea3389104be8193564912efe235ba730556

Contents?: true

Size: 414 Bytes

Versions: 6

Compression:

Stored size: 414 Bytes

Contents

require 'log4r'
include Log4r
module EkmOmnimeter

  module Logging

    def logger
      @logger ||= EkmOmnimeter::Logging.logger
    end

    def self.logger
      @logger ||= self.configure_logger_for(self.class.name)
    end

    def self.configure_logger_for(classname)
      l = Logger.new(classname)
      l.level = ERROR
      l.trace = false
      l.add Log4r::Outputter.stderr
      l
    end

  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ekm-omnimeter-0.2.4 lib/ekm-omnimeter/logging.rb
ekm-omnimeter-0.2.3 lib/ekm-omnimeter/logging.rb
ekm-omnimeter-0.2.2 lib/ekm-omnimeter/logging.rb
ekm-omnimeter-0.2.1 lib/ekm-omnimeter/logging.rb
ekm-omnimeter-0.2.0 lib/ekm-omnimeter/logging.rb
ekm-omnimeter-0.1.0 lib/ekm-omnimeter/logging.rb