lib/ruby_logger_adapter.rb in slf4r-0.1.0 vs lib/ruby_logger_adapter.rb in slf4r-0.1.1
- old
+ new
@@ -1,10 +1,26 @@
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