Sha256: dc176baea2410ce2a04f8a332a0a7570345372f5d110ec5657792f6e2ffcd920

Contents?: true

Size: 302 Bytes

Versions: 3

Compression:

Stored size: 302 Bytes

Contents

module Logging
  class Logger

    def initialize(name)
      @logger = ::Slf4r::LoggerFacade.new(name)
    end

    class << self
      alias :[] :new
    end
    
    def method_missing(method, *args, &block)
      @logger.send(method, *args, &block) if @logger.respond_to?(method)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
slf4r-0.1.1 lib/logging_adapter.rb
slf4r-0.1.0 lib/logging_adapter.rb
slf4r-0.2.0 lib/logging_adapter.rb