all repos — mgba @ 7422233399333717c150ee213bde30363e24a9dd

mGBA Game Boy Advance Emulator

Python: Add mgba.log.silence
Vicki Pfau vi@endrift.com
Sat, 01 Sep 2018 15:00:20 -0700
commit

7422233399333717c150ee213bde30363e24a9dd

parent

327f1dfe47c1a756e455839e296410e0e9f1550d

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

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