all repos — mgba @ 3310210dc7b7ea79f711dc0e41076c2bf4589c9d

mGBA Game Boy Advance Emulator

Python: Add NullLogger
Jeffrey Pfau jeffrey@endrift.com
Fri, 28 Oct 2016 16:50:51 -0700
commit

3310210dc7b7ea79f711dc0e41076c2bf4589c9d

parent

34964495171d71264e34874e001046c471b2df74

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M src/platform/python/mgba/log.pysrc/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