Sha256: 5cf29c0143aaa5165660925d06fcd3bb8c7063a8f6cba94599cdb2b13e07bff3

Contents?: true

Size: 371 Bytes

Versions: 6

Compression:

Stored size: 371 Bytes

Contents

module Log4r
  class Logger

    def initialize(_fullname, _level=nil, _additive=true, _trace=false)
      @logger = ::Slf4r::LoggerFacade.new(_fullname)
    end

    def method_missing(method, *args, &block)
      @logger.send(method, *args, &block) if @logger.respond_to?(method)
    end

    def respend_to?(method)
      @logger.respond_to?(method)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
slf4r-0.4.2 lib/log4r_adapter.rb
slf4r-0.4.1 lib/log4r_adapter.rb
slf4r-0.4.0 lib/log4r_adapter.rb
slf4r-0.3.3 lib/log4r_adapter.rb
slf4r-0.3.2 lib/log4r_adapter.rb
slf4r-0.3.1 lib/log4r_adapter.rb