DEV: Fix FakeLogger compat (#18562)
TaggedLogger requires these methods (see plugin backend failures in #18534)
This commit is contained in:
parent
4170b9bb58
commit
a4437ab30b
|
@ -16,22 +16,42 @@ class FakeLogger
|
|||
@debug << message
|
||||
end
|
||||
|
||||
def debug?
|
||||
@level <= Logger::DEBUG
|
||||
end
|
||||
|
||||
def info(message = nil)
|
||||
@infos << message
|
||||
end
|
||||
|
||||
def info?
|
||||
@level <= Logger::INFO
|
||||
end
|
||||
|
||||
def warn(message)
|
||||
@warnings << message
|
||||
end
|
||||
|
||||
def warn?
|
||||
@level <= Logger::WARN
|
||||
end
|
||||
|
||||
def error(message)
|
||||
@errors << message
|
||||
end
|
||||
|
||||
def error?
|
||||
@level <= Logger::ERROR
|
||||
end
|
||||
|
||||
def fatal(message)
|
||||
@fatals << message
|
||||
end
|
||||
|
||||
def fatal?
|
||||
@level <= Logger::FATAL
|
||||
end
|
||||
|
||||
def formatter
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue