Python: Add NullLogger
Jeffrey Pfau jeffrey@endrift.com
Fri, 28 Oct 2016 16:50:51 -0700
1 files changed,
4 insertions(+),
0 deletions(-)
jump to
M
src/platform/python/mgba/log.py
→
src/platform/python/mgba/log.py
@@ -32,3 +32,7 @@ return ffi.string(lib.mLogCategoryName(category)).decode('UTF-8')
def log(self, category, level, message): print("{}: {}".format(self.categoryName(category), message)) + +class NullLogger(Logger): + def log(self, category, level, message): + pass