public static void OnInformation(this IHasContext obj, string message, InformationLevel level)
 {
     obj.OnEvent(new InformationEvent(message, level));
 }
 public static void OnCounter(this IHasContext obj, string key, object value)
 {
     obj.OnEvent(new CounterEvent(key, value));
 }
        public static void OnError(this IHasContext obj, Exception error, int errorCode, ErrorLevel level)
        {
            var errorEvent = new ErrorEvent(error, errorCode, level);

            obj.OnEvent(errorEvent);
        }