new, refactoring

This commit is contained in:
hg
2015-06-09 17:01:20 +02:00
parent d52db3c576
commit ea0c98b4c5
2 changed files with 74 additions and 0 deletions

19
logger.py Normal file
View File

@ -0,0 +1,19 @@
class Logger(object):
@staticmethod
def log(data):
print data
if Logger.debugFlag:
print data
@staticmethod
def debugEnable():
Logger.debugFlag = True
@staticmethod
def debugDisable():
Logger.debugFlag = False
debugFlag = False