Sha256: 013a553ed2e276c8dca124f5d406b368c3432ffc3122acf87480799e897d2cd5

Contents?: true

Size: 369 Bytes

Versions: 6

Compression:

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

    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/logging_adapter.rb
slf4r-0.4.1 lib/logging_adapter.rb
slf4r-0.4.0 lib/logging_adapter.rb
slf4r-0.3.3 lib/logging_adapter.rb
slf4r-0.3.2 lib/logging_adapter.rb
slf4r-0.3.1 lib/logging_adapter.rb