Esempio n. 1
0
        public ObjectLog(ObjectLogSchema schema, ObjectLogConfiguration configuration)
        {
            this.configuration = configuration;
            this.schemaEntries = ObjectLog <T> .GetSchemaEntries(schema);

            this.logSchema = ObjectLog <T> .GetLogSchema(schema, this.schemaEntries);

            this.log = new Log(configuration.FilenamePrefix, new LogHeaderFormatter(this.logSchema, LogHeaderCsvOption.CsvStrict), configuration.LogComponentName, true);
            this.log.Configure(configuration.LoggingFolder, configuration.MaxLogAge, configuration.MaxLogDirSize, configuration.MaxLogFileSize, configuration.BufferLength, configuration.StreamFlushInterval, configuration.Note, configuration.FlushToDisk);
        }
 public DisposableObjectLog(ObjectLogSchema schema, ObjectLogConfiguration configuration) : base(schema, configuration)
 {
 }
Esempio n. 3
0
 public FailureObjectLog(ObjectLogConfiguration logConfig)
 {
     this.failureLogger = new ObjectLog <FailureObjectLog.FailureObjectLogEntry>(new FailureObjectLog.FailureObjectLogSchema(), logConfig);
 }