mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Added Super Metroid support (#46)
Varia Randomizer based implementation LttPClient -> SNIClient
This commit is contained in:
16
worlds/sm/variaRandomizer/utils/log.py
Normal file
16
worlds/sm/variaRandomizer/utils/log.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import logging, sys
|
||||
|
||||
# store the debug flag at module level
|
||||
debug = False
|
||||
|
||||
def init(pdebug):
|
||||
global debug
|
||||
debug = pdebug
|
||||
|
||||
if debug == True:
|
||||
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)
|
||||
else:
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
|
||||
def get(name):
|
||||
return logging.getLogger(name)
|
||||
Reference in New Issue
Block a user