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); }
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); }
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); }
public void Stop() { _sw.Stop(); _hippoLogDetail.ElapsedMilliseconds = _sw.ElapsedMilliseconds; HippoLogger.WritePerf(_hippoLogDetail); }