Python: Add mgba.log.silence
Vicki Pfau vi@endrift.com
Sat, 01 Sep 2018 15:00:20 -0700
1 files changed,
4 insertions(+),
0 deletions(-)
jump to
M
src/platform/python/mgba/log.py
→
src/platform/python/mgba/log.py
@@ -13,6 +13,10 @@ def install_default(logger):
Logger.install_default(logger) +def silence(): + Logger.install_default(NullLogger()) + + class Logger(object): FATAL = lib.mLOG_FATAL DEBUG = lib.mLOG_DEBUG