public virtual string Color_LogLevel_Title(ELogLevel level, string name) { switch (level) { case ELogLevel.Trace: return(ANSI.White(name)); case ELogLevel.Info: case ELogLevel.Debug: return(ANSI.WhiteBright(name)); case ELogLevel.Success: return(ANSI.GreenBright(name)); case ELogLevel.Failure: return(ANSI.RedBright(name)); case ELogLevel.Warn: return(ANSI.YellowBright(name)); case ELogLevel.Error: return(ANSI.RedBright(name)); case ELogLevel.Assert: return(ANSI.MagentaBright(name)); case ELogLevel.Interface: return(ANSI.WhiteBright(name)); default: return(name); } }
public virtual string Color_LogLine(ELogLevel level, string msg) { switch (level) { case ELogLevel.Trace: return(ANSI.BlackBright(msg)); case ELogLevel.Info: case ELogLevel.Debug: return(ANSI.White(msg)); case ELogLevel.Success: return(ANSI.Green(msg)); case ELogLevel.Failure: return(ANSI.Red(msg)); case ELogLevel.Warn: return(ANSI.Yellow(msg)); case ELogLevel.Error: return(ANSI.Red(msg)); case ELogLevel.Assert: return(ANSI.Magenta(msg)); case ELogLevel.Interface: return(ANSI.White(msg)); default: return(msg); } }