modifié: m/log.py
This commit is contained in:
parent
d3efa035bb
commit
826fccc623
8
m/log.py
8
m/log.py
@ -37,13 +37,13 @@ class Log(object):
|
|||||||
if pLvl == 10 :
|
if pLvl == 10 :
|
||||||
pMsg = bcolors.DEBUG + pMsg + bcolors.ENDC
|
pMsg = bcolors.DEBUG + pMsg + bcolors.ENDC
|
||||||
elif pLvl == 20 :
|
elif pLvl == 20 :
|
||||||
pMsg = bcolors.DEBUG + pMsg + bcolors.ENDC
|
pMsg = bcolors.INFO + pMsg + bcolors.ENDC
|
||||||
elif pLvl == 25 :
|
elif pLvl == 25 :
|
||||||
pMsg = bcolors.DEBUG + pMsg + bcolors.ENDC
|
pMsg = bcolors.SUCCESS + pMsg + bcolors.ENDC
|
||||||
elif pLvl == 30 :
|
elif pLvl == 30 :
|
||||||
pMsg = bcolors.DEBUG + pMsg + bcolors.ENDC
|
pMsg = bcolors.WARNING + pMsg + bcolors.ENDC
|
||||||
elif pLvl == 40 :
|
elif pLvl == 40 :
|
||||||
pMsg = bcolors.DEBUG + pMsg + bcolors.ENDC
|
pMsg = bcolors.FAIL + pMsg + bcolors.ENDC
|
||||||
self.logger.log(pLvl,pMsg)
|
self.logger.log(pLvl,pMsg)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user