Python: Add NullLogger

This commit is contained in:
Jeffrey Pfau 2016-10-28 16:50:51 -07:00
parent 3496449517
commit 3310210dc7
1 changed files with 4 additions and 0 deletions

View File

@ -32,3 +32,7 @@ class Logger(object):
def log(self, category, level, message): def log(self, category, level, message):
print("{}: {}".format(self.categoryName(category), message)) print("{}: {}".format(self.categoryName(category), message))
class NullLogger(Logger):
def log(self, category, level, message):
pass