public static List <TWLogMessage> GetAllLogMessages() { var list = new List <TWLogMessage>(); ILogReader reader = LogReader.Instance; while (true) { LogMessage message = reader.GetNextLogMessage(); if (message == null) { break; } list.Add(new TWLogMessage(ToTWSeverity(message.Severity), message.Template, message.Objects, message.Exception, message.Time)); } return(list); }