Python: add tests for loggers

This commit is contained in:
Rasmus Lerchedahl Petersen
2024-06-28 15:25:17 +02:00
parent 5ddfe75a0d
commit 77a00873a9

View File

@@ -43,3 +43,12 @@ class MyLogger(logging.Logger):
pass
MyLogger("bar").info("hello") # $ loggingInput="hello"
class CustomLogger(logging.getLoggerClass()):
pass
CustomLogger("baz").info("hello") # $ loggingInput="hello"
class LoggerSubClassUsingSelf(logging.Logger):
def foo(self):
self.info("hello") # $ loggingInput="hello"