Пример #1
0
        public static void LogWebUsage(string product, string layer, string activityName,
                                       HttpContext context, Dictionary <string, object> additionalInfo = null)
        {
            var details = GetWebFlogDetail(product, layer, activityName, context, additionalInfo);

            HippoLogger.WriteUsage(details);
        }
Пример #2
0
        public static void LogWebDiagnostic(string product, string layer, string message,
                                            HttpContext context, Dictionary <string, object> diagnosticInfo = null)
        {
            var details = GetWebFlogDetail(product, layer, message, context, diagnosticInfo);

            HippoLogger.WriteDiagnostic(details);
        }
Пример #3
0
        public static void LogWebError(string product, string layer, Exception ex,
                                       HttpContext context)
        {
            var details = GetWebFlogDetail(product, layer, null, context, null);

            details.Exception = ex;

            HippoLogger.WriteError(details);
        }
Пример #4
0
 public void Stop()
 {
     _sw.Stop();
     _hippoLogDetail.ElapsedMilliseconds = _sw.ElapsedMilliseconds;
     HippoLogger.WritePerf(_hippoLogDetail);
 }