private void LogProperties(LogEvent e) { if (e.Properties == null || e.Properties.Count == 0) { return; } int longestPropName = e.Properties.Keys.Max(k => k.Length); foreach (KeyValuePair <string, object> prop in e.Properties.Where(p => !TextFormatter.DoNotPrint(p.Key))) { Console.Write(" |"); string name = prop.Key.PadLeft(longestPropName); Cg.Write(name, ParameterColour); Console.Write(": "); Cg.Write(prop.Value?.ToString(), MessageColour); Console.WriteLine(); } }