def LOG(message=None,type=None):
if VERBOSITY<=0:
return
elif VERBOSITY==1:
#minimal verbosity ... dot style output
if type in MSGSCHEME_MIN:
message = MSGSCHEME_MIN[type]
if DO_COLOR and type in COLORSCHEME:
message = COLORSCHEME[type]%message
stdout.write("%s"%message)
stdout.flush()
else:
if type in MSGSCHEME:
message = MSGSCHEME[type]%message
if DO_COLOR and type in COLORSCHEME:
message = COLORSCHEME[type]%message
if MODE_FUZZ:
stdout.write("[FUZZ] %s\n"% (message))
else:
stdout.write("%s\n"% (message))
stdout.flush()
评论列表
文章目录