Sha256: 25c597a33d9285a08edc38690db8c72e192ee953184b1a0cc740732224cf7955

Contents?: true

Size: 304 Bytes

Versions: 3

Compression:

Stored size: 304 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
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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