Beispiel #1
0
 public static IDictionary <string, string> GetProperties(Event <LogEventData> evt, PropertyConfig config)
 {
     return(GetProperties(evt.Data.Properties, config, "").ToDictionary(x => x.Key, x => x.Value));
 }
Beispiel #2
0
        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 : "");
        }