public static void Dmesg(DisplayOptions logOptions) { var loginfo = m_client.GetLogs().CollectionItem.OrderByDescending(o => o.LastWrite).FirstOrDefault(); var log = m_client.GetLog(loginfo.Name); using (var ms = new MemoryStream(log.Contents)) using (var sr = new StreamReader(ms)) if (!logOptions.RawPrint) { PrintFiltered(LogEvent.Load(sr), logOptions); } else { PrintRaw(sr, logOptions); } }