Sha256: 25ae5078dc4868603601ee9958e4c1f1dde60acf00d663c12454f14cc9ca6df6

Contents?: true

Size: 375 Bytes

Versions: 1

Compression:

Stored size: 375 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

1 entries across 1 versions & 1 rubygems

Version Path
slf4r-0.3.0 lib/log4r_adapter.rb