// Token: 0x060001A9 RID: 425 RVA: 0x00006EB8 File Offset: 0x000050B8 protected ActivityContextLogger(string fileNamePrefix) { this.SafeTraceDebug(0L, "Start creating {0}.", new object[] { this.LogTypeName }); string version = "0.0.0.0"; Version version2 = Assembly.GetExecutingAssembly().GetName().Version; if (version2 != null) { version = version2.ToString(); } this.LogSchema = new LogSchema("Microsoft Exchange", version, this.LogTypeName, this.GetLogFields()); LogHeaderFormatter headerFormatter = new LogHeaderFormatter(this.LogSchema); string fileNamePrefix2 = string.IsNullOrWhiteSpace(fileNamePrefix) ? this.FileNamePrefix : fileNamePrefix; this.Log = new Log(fileNamePrefix2, headerFormatter, this.LogComponentName); ActivityContextLogFileSettings logFileSettings = this.GetLogFileSettings(); if (logFileSettings.Enabled) { this.Enabled = true; this.Log.Configure(logFileSettings.DirectoryPath, logFileSettings.MaxAge, (long)logFileSettings.MaxDirectorySize.ToBytes(), (long)logFileSettings.MaxFileSize.ToBytes(), (int)logFileSettings.CacheSize.ToBytes(), logFileSettings.FlushInterval, logFileSettings.FlushToDisk); this.InternalConfigure(logFileSettings); this.SafeTraceDebug(0L, "{0} is configured.", new object[] { this.LogTypeName }); } else { this.Enabled = false; this.SafeTraceDebug(0L, "{0} is disabled.", new object[] { this.LogTypeName }); } this.SafeTraceDebug(0L, "{0} on server {1} is created and ready for use.", new object[] { this.LogTypeName, this.ServerName }); }
// Token: 0x060001B3 RID: 435 RVA: 0x00007186 File Offset: 0x00005386 protected virtual void InternalConfigure(ActivityContextLogFileSettings settings) { }