private string FormatLine(string line, CLogLevel level, CTag tag, string stackTrace) { StringBuilder lineBuffer = new StringBuilder(); string coloredLine = CEditorSkin.SetColors(line); string filename = CEditorStackTrace.ExtractFileName(stackTrace); if (level != null) { lineBuffer.Append("["); lineBuffer.Append(level.ShortName); lineBuffer.Append("]: "); } if (filename != null) { lineBuffer.Append(CStringUtils.C("[" + filename + "]: ", CEditorSkin.GetColor(CColorCode.Plain))); } if (tag != null) { lineBuffer.Append("["); lineBuffer.Append(tag.Name); lineBuffer.Append("]: "); } lineBuffer.Append(coloredLine); return(lineBuffer.ToString()); }
private string[] FormatLines(string[] lines) { for (int i = 0; i < lines.Length; ++i) { lines[i] = CEditorSkin.SetColors(lines[i]); } return lines; }
private string[] FormatTable(string[] table, CLogLevel level, CTag tag, string stackTrace) { for (int i = 0; i < table.Length; ++i) { table[i] = CEditorSkin.SetColors(table[i]); } return(table); }
private string FormatLine(string line) { return CEditorSkin.SetColors(line); }