Exemplo n.º 1
0
        public static void LogWebUsage(string product, string layer, string activityName,
                                       HttpContext context, Dictionary <string, object> additionalInfo = null)
        {
            var details = GetWebLogDetail(product, layer, activityName, context, additionalInfo);

            McsLogger.WriteUsage(details);
        }
Exemplo n.º 2
0
        public static void LogWebDiagnostic(string product, string layer, string message,
                                            HttpContext context, Dictionary <string, object> diagnosticInfo = null)
        {
            var details = GetWebLogDetail(product, layer, message, context, diagnosticInfo);

            McsLogger.WriteDiagnostic(details);
        }
Exemplo n.º 3
0
        public static void LogWebError(string product, string layer, Exception ex,
                                       HttpContext context)
        {
            var details = GetWebLogDetail(product, layer, null, context, null);

            details.Exception = ex;

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