Lines Matching refs:Color
24 class Color(object):
28 def terminalCode(color, out=sys.stdout):
31 elif color == Logger.Color.Blue:
33 elif color == Logger.Color.Gray:
35 elif color == Logger.Color.Purple:
37 elif color == Logger.Color.Red:
39 elif color == Logger.Color.Green:
47 def log(text, level=Level.Info, color=Color.Default, newLine=True, out=sys.stdout):
49 text = Logger.Color.terminalCode(color, out) + text + \
50 Logger.Color.terminalCode(Logger.Color.Default, out)
59 Logger.log("error: ", Logger.Level.Error, color=Logger.Color.Red, newLine=False, out=sys.stderr)
70 Logger.log(loc, Logger.Level.Error, color=Logger.Color.Gray, newLine=False, out=sys.stderr)
80 Logger.log(var, Logger.Level.Error, color=Logger.Color.Green, newLine=False, out=sys.stderr)
89 Logger.log("TEST ", color=Logger.Color.Purple, newLine=False)
94 Logger.log("PASS", color=Logger.Color.Blue)
98 Logger.log("FAIL", color=Logger.Color.Red)