modifié: m/fichier/conf
modifié: m/log.py
This commit is contained in:
parent
e29fb0bc79
commit
6cdbd96b7f
@ -1,4 +1,4 @@
|
||||
blind=1
|
||||
camera=192.168.1.13
|
||||
|
||||
portCamera=80
|
||||
portServ=80
|
||||
|
13
m/log.py
13
m/log.py
@ -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'
|
||||
|
Reference in New Issue
Block a user