modifié: m/fichier/conf

modifié:         m/log.py
This commit is contained in:
sidya82 2014-03-03 13:57:07 +01:00
parent e29fb0bc79
commit 6cdbd96b7f
2 changed files with 7 additions and 8 deletions

View File

@ -1,4 +1,4 @@
blind=1
camera=192.168.1.13
portCamera=80
portServ=80

View File

@ -31,17 +31,16 @@ class Log(object):
def printL(self,pMsg,pLvl):
self.logger.log(pLvl,pMsg)
if pLvl == 10 :
print bcolors.DEBUG
print bcolors.DEBUG + pMsg + bcolors.ENDC
elif pLvl == 20 :
print bcolors.INFO
print bcolors.INFO + pMsg + bcolors.ENDC
elif pLvl == 25 :
print bcolors.SUCCESS
print bcolors.SUCCESS + pMsg + bcolors.ENDC
elif pLvl == 30 :
print bcolors.WARNING
print bcolors.WARNING + pMsg + bcolors.ENDC
elif pLvl == 40 :
print bcolors.FAIL
print pMsg
print bcolors.ENDC
print bcolors.FAIL + pMsg + bcolors.ENDC
class bcolors:
DEBUG = '\033[94m'