Exemplo n.º 1
0
 public LoggerOptions(ILoggerOptions options)
 {
     this.LogDirectoryPath  = options.LogDirectoryPath;
     this.Headers           = options.Headers;
     this.IgnoreExceptions  = options.IgnoreExceptions;
     this.MessageFormatter  = options.MessageFormatter;
     this.FilenameFormatter = options.FilenameFormatter;
     this.RetentionPolicy   = options.RetentionPolicy;
 }
Exemplo n.º 2
0
        public void SetLogRetentionPolicy(ILogRetentionPolicy retentionPolicy)
        {
            logRetentionPolicy = retentionPolicy;

            ExecuteLogRetentionPolicy();
        }