Sha256: c34452bb5cf36a0fed2b14af0b0e082fa1e1ec97b3190ffd6c7026b9a85aa746
Contents?: true
Size: 465 Bytes
Versions: 2
Compression:
Stored size: 465 Bytes
Contents
class Logger def initialize(*args) @logger = ::Slf4r::LoggerFacade.new(:root) end def debug(msg, &block) @logger.debug(msg, &block) end def info(msg, &block) @logger.info(msg, &block) end def warn(msg, &block) @logger.warn(msg, &block) end def error(msg, &block) @logger.error(msg, &block) end def method_missing(method, *args, &block) @logger.send(method, *args, &block) if @logger.respond_to?(method) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
slf4r-0.1.1 | lib/ruby_logger_adapter.rb |
slf4r-0.2.0 | lib/ruby_logger_adapter.rb |