示例#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);

            EnvyLogger.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);

            EnvyLogger.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;

            EnvyLogger.WriteError(details);
        }
 public void Stop()
 {
     _sw.Stop();
     _infoToLog.ElapsedMilliseconds = _sw.ElapsedMilliseconds;
     EnvyLogger.WritePerf(_infoToLog);
 }