D | logger.py | 21 class Level(enum.IntEnum): class in Logger 44 Verbosity = Level.INFO 47 def log(content, level=Level.INFO, color=Color.DEFAULT, new_line=True, out=sys.stdout): 59 Logger.log("error: ", Logger.Level.ERROR, color=Logger.Color.RED, new_line=False, 61 Logger.log(msg, Logger.Level.ERROR, out=sys.stderr) 71 Logger.log(loc, Logger.Level.ERROR, color=Logger.Color.GRAY, new_line=False, 73 Logger.log(line_text, Logger.Level.ERROR, out=sys.stderr) 80 Logger.log(var, Logger.Level.ERROR, color=Logger.Color.GREEN, new_line=False, 82 Logger.log(padding, Logger.Level.ERROR, new_line=False, out=sys.stderr) 83 Logger.log(" = ", Logger.Level.ERROR, new_line=False, out=sys.stderr) [all …]
|