class NullLogger
Null logger implementation that just ignores everything. This is used by classes that are intended to be reused outside of Chef, but need to offer logging functionality when used by other Chef code.
It does not define the full interface provided by Logger, just enough to be a reasonable duck type. In particular, methods setting the log level, log device, etc., are not implemented because any code calling those methods probably expected a real logger and not this “fake” one.
Public Instance Methods
<<(message)
click to toggle source
# File lib/recommend_me/null_logger.rb, line 47 def <<(message) end
add(severity, message=nil, progname=nil)
click to toggle source
# File lib/recommend_me/null_logger.rb, line 44 def add(severity, message=nil, progname=nil) end
debug(message, &block)
click to toggle source
# File lib/recommend_me/null_logger.rb, line 41 def debug(message, &block) end
debug?()
click to toggle source
# File lib/recommend_me/null_logger.rb, line 66 def debug? false end
error(message, &block)
click to toggle source
# File lib/recommend_me/null_logger.rb, line 32 def error(message, &block) end
error?()
click to toggle source
# File lib/recommend_me/null_logger.rb, line 54 def error? false end
fatal(message, &block)
click to toggle source
# File lib/recommend_me/null_logger.rb, line 29 def fatal(message, &block) end
fatal?()
click to toggle source
# File lib/recommend_me/null_logger.rb, line 50 def fatal? false end
info(message, &block)
click to toggle source
# File lib/recommend_me/null_logger.rb, line 38 def info(message, &block) end
info?()
click to toggle source
# File lib/recommend_me/null_logger.rb, line 62 def info? false end
warn(message, &block)
click to toggle source
# File lib/recommend_me/null_logger.rb, line 35 def warn(message, &block) end
warn?()
click to toggle source
# File lib/recommend_me/null_logger.rb, line 58 def warn? false end