// Token: 0x060015A9 RID: 5545 RVA: 0x0004D370 File Offset: 0x0004B570
 internal void SetException(Exception e)
 {
     if (e != null)
     {
         List <string> list           = null;
         List <string> list2          = null;
         string        exceptionChain = null;
         PolicyTipProtocolLog.GetExceptionTypeAndDetails(e, out list, out list2, out exceptionChain, false);
         this.OuterExceptionType    = list[0];
         this.OuterExceptionMessage = list2[0];
         if (list.Count > 1)
         {
             this.InnerExceptionType    = list[list.Count - 1];
             this.InnerExceptionMessage = list2[list2.Count - 1];
         }
         this.ExceptionChain = exceptionChain;
     }
 }
Ejemplo n.º 2
0
        internal static void WriteToLog(string correlationId, string stage, string data, string extraData, TimeSpan elapsedTime, string outerExceptionType, string outerExceptionMessage, string innerExceptionType, string innerExceptionMessage, string exceptionChain)
        {
            PolicyTipProtocolLog.InitializeIfNeeded();
            LogRowFormatter logRowFormatter = new LogRowFormatter(PolicyTipProtocolLog.LogSchema);

            logRowFormatter[1]  = Environment.MachineName;
            logRowFormatter[2]  = correlationId;
            logRowFormatter[3]  = stage;
            logRowFormatter[5]  = data;
            logRowFormatter[6]  = extraData;
            logRowFormatter[4]  = elapsedTime.TotalMilliseconds;
            logRowFormatter[7]  = outerExceptionType;
            logRowFormatter[8]  = outerExceptionMessage;
            logRowFormatter[9]  = innerExceptionType;
            logRowFormatter[10] = innerExceptionMessage;
            logRowFormatter[11] = exceptionChain;
            PolicyTipProtocolLog.instance.logInstance.Append(logRowFormatter, 0);
        }
 // Token: 0x06001588 RID: 5512 RVA: 0x0004CEE0 File Offset: 0x0004B0E0
 private void Initialize()
 {
     PolicyTipProtocolLog.instance.logInstance = new Log(PolicyTipProtocolLog.GetLogFileName(), new LogHeaderFormatter(PolicyTipProtocolLog.LogSchema), "OwaPolicyTipLog");
     PolicyTipProtocolLog.instance.logInstance.Configure(Path.Combine(ExchangeSetupContext.InstallPath, "Logging\\PolicyTip\\"), PolicyTipProtocolLog.LogMaxAge, 262144000L, 10485760L);
 }