// Token: 0x0600004C RID: 76 RVA: 0x00004310 File Offset: 0x00002510 public static void Trace(long id, TraceType traceType, params object[] parameters) { if (ComplianceProtocolLog.GetInstance() == null) { return; } if (parameters != null && parameters.Length > 0 && ExTraceGlobals.TaskDistributionSystemTracer.IsTraceEnabled(traceType)) { StringBuilder stringBuilder = new StringBuilder(); for (int i = 0; i < parameters.Length; i++) { stringBuilder.AppendFormat("{{{0}}}", i); } string formatString = stringBuilder.ToString(); switch (traceType) { case TraceType.DebugTrace: ExTraceGlobals.TaskDistributionSystemTracer.TraceDebug(id, formatString, parameters); return; case TraceType.WarningTrace: ExTraceGlobals.TaskDistributionSystemTracer.TraceWarning(id, formatString, parameters); return; case TraceType.ErrorTrace: ExTraceGlobals.TaskDistributionSystemTracer.TraceError(id, formatString, parameters); return; case TraceType.PerformanceTrace: ExTraceGlobals.TaskDistributionSystemTracer.TracePerformance(id, formatString, parameters); return; } ExTraceGlobals.TaskDistributionSystemTracer.Information(id, formatString, parameters); } }
// Token: 0x0600004E RID: 78 RVA: 0x00004400 File Offset: 0x00002600 public static void LogOutgoingMessage(ComplianceMessage complianceMessage) { ComplianceProtocolLog complianceProtocolLog = ComplianceProtocolLog.GetInstance(); if (complianceProtocolLog != null && complianceMessage != null) { complianceProtocolLog.Log(complianceMessage, false); } }
// Token: 0x0600004B RID: 75 RVA: 0x00004224 File Offset: 0x00002424 public static void Trace(long id, TraceType traceType, object parameter1, object parameter2) { if (ComplianceProtocolLog.GetInstance() == null) { return; } if (ExTraceGlobals.TaskDistributionSystemTracer.IsTraceEnabled(traceType)) { string formatString = "{0} {1}"; switch (traceType) { case TraceType.DebugTrace: ExTraceGlobals.TaskDistributionSystemTracer.TraceDebug(id, formatString, new object[] { parameter1, parameter2 }); return; case TraceType.WarningTrace: ExTraceGlobals.TaskDistributionSystemTracer.TraceWarning(id, formatString, new object[] { parameter1, parameter2 }); return; case TraceType.ErrorTrace: ExTraceGlobals.TaskDistributionSystemTracer.TraceError(id, formatString, new object[] { parameter1, parameter2 }); return; case TraceType.PerformanceTrace: ExTraceGlobals.TaskDistributionSystemTracer.TracePerformance(id, formatString, new object[] { parameter1, parameter2 }); return; } ExTraceGlobals.TaskDistributionSystemTracer.Information(id, formatString, new object[] { parameter1, parameter2 }); } }
// Token: 0x06000042 RID: 66 RVA: 0x00003FF0 File Offset: 0x000021F0 protected ComplianceProtocolLog(string path, int logFileMaxAge, int maxDirectorySize, int maxFileSize, int maxCacheSize, int logFlushInterval) { this.logLock = new object(); this.logFileMaxAge = TimeSpan.FromDays(30.0); this.maxDirectorySize = 100; this.maxFileSize = 100; this.maxCacheSize = 10; this.logFlushInterval = TimeSpan.FromSeconds(10.0); base..ctor(); this.logPath = path; this.logFileMaxAge = TimeSpan.FromDays((double)logFileMaxAge); this.maxDirectorySize = maxDirectorySize * 1024 * 1024; this.maxFileSize = maxFileSize * 1024 * 1024; this.maxCacheSize = maxCacheSize * 1024 * 1024; this.logFlushInterval = TimeSpan.FromSeconds((double)logFlushInterval); this.logSchema = new LogSchema(this.SoftwareName, Assembly.GetExecutingAssembly().GetName().Version.ToString(), this.LogTypeName, ComplianceProtocolLog.GetColumnArray(ComplianceProtocolLog.Fields)); this.log = new Log(this.FileNamePrefixName, new LogHeaderFormatter(this.logSchema, true), this.LogComponentName); this.Configure(); }
// Token: 0x06000041 RID: 65 RVA: 0x00003F5C File Offset: 0x0000215C protected ComplianceProtocolLog() { this.logLock = new object(); this.logFileMaxAge = TimeSpan.FromDays(30.0); this.maxDirectorySize = 100; this.maxFileSize = 100; this.maxCacheSize = 10; this.logFlushInterval = TimeSpan.FromSeconds(10.0); base..ctor(); this.logSchema = new LogSchema(this.SoftwareName, Assembly.GetExecutingAssembly().GetName().Version.ToString(), this.LogTypeName, ComplianceProtocolLog.GetColumnArray(ComplianceProtocolLog.Fields)); }