public static IDictionary <string, string> GetProperties(Event <LogEventData> evt, PropertyConfig config) { return(GetProperties(evt.Data.Properties, config, "").ToDictionary(x => x.Key, x => x.Value)); }
public static string GetProperty(Event <LogEventData> evt, string propertyPath, PropertyConfig config = null) { var properties = GetProperties(evt, config ?? new PropertyConfig()); return(properties.TryGetValue(propertyPath, out var value) ? value : ""); }