Exemple #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);
        }
Exemple #2
0
        public static LogSchema GetLogSchema(ObjectLogSchema schema)
        {
            List <IObjectLogPropertyDefinition <T> > list = ObjectLog <T> .GetSchemaEntries(schema);

            return(ObjectLog <T> .GetLogSchema(schema, list));
        }
 public static LogSchema GetLogSchema()
 {
     return(ObjectLog <FailureObjectLog.FailureObjectLogEntry> .GetLogSchema(new FailureObjectLog.FailureObjectLogSchema()));
 }