From 3310210dc7b7ea79f711dc0e41076c2bf4589c9d Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Fri, 28 Oct 2016 16:50:51 -0700 Subject: [PATCH] Python: Add NullLogger --- src/platform/python/mgba/log.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/platform/python/mgba/log.py b/src/platform/python/mgba/log.py index 846861e02..a3412b186 100644 --- a/src/platform/python/mgba/log.py +++ b/src/platform/python/mgba/log.py @@ -32,3 +32,7 @@ class Logger(object): def log(self, category, level, message): print("{}: {}".format(self.categoryName(category), message)) + +class NullLogger(Logger): + def log(self, category, level, message): + pass