lib/prefab/internal_logger.rb in prefab-cloud-ruby-0.20.0 vs lib/prefab/internal_logger.rb in prefab-cloud-ruby-0.21.0
- old
+ new
@@ -1,29 +1,30 @@
# frozen_string_literal: true
+
module Prefab
class InternalLogger < Logger
def initialize(path, logger)
@path = path
@logger = logger
end
- def debug(progname = nil, &block)
+ def debug(progname = nil)
@logger.log_internal yield, @path, progname, DEBUG
end
- def info(progname = nil, &block)
+ def info(progname = nil)
@logger.log_internal yield, @path, progname, INFO
end
- def warn(progname = nil, &block)
+ def warn(progname = nil)
@logger.log_internal yield, @path, progname, WARN
end
- def error(progname = nil, &block)
+ def error(progname = nil)
@logger.log_internal yield, @path, progname, ERROR
end
- def fatal(progname = nil, &block)
+ def fatal(progname = nil)
@logger.log_internal yield, @path, progname, FATAL
end
end
end