Esempio n. 1
0
 // 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();
 }
Esempio n. 2
0
 // 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));
 }