Пример #1
0
 /// <summary>
 /// Creates a new instance of <see cref="FileTarget"/>.
 /// </summary>
 public FileTarget()
 {
     _logEventComparer = new LogEventComparer(this);
 }
Пример #2
0
 /// <summary>
 /// Creates a new instance of <see cref="FileTarget"/>.
 /// </summary>
 public FileTarget()
 {
     _logEventComparer = new LogEventComparer(this);
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FileTarget" /> class.
 /// </summary>
 /// <remarks>
 /// The default value of the layout is: <code>${longdate}|${level:uppercase=true}|${logger}|${message}</code>
 /// </remarks>
 public FileTarget()
 {
     this.ArchiveNumbering = ArchiveNumberingMode.Sequence;
     this.MaxArchiveFiles = 9;
     this.ConcurrentWriteAttemptDelay = 1;
     this.ArchiveEvery = FileArchivePeriod.None;
     this.ArchiveAboveSize = -1;
     this.ConcurrentWriteAttempts = 10;
     this.ConcurrentWrites = true;
     #if SILVERLIGHT
     this.Encoding = Encoding.UTF8;
     #else
     this.Encoding = Encoding.Default;
     #endif
     this.BufferSize = 32768;
     this.AutoFlush = true;
     #if !SILVERLIGHT && !NET_CF
     this.FileAttributes = Win32FileAttributes.Normal;
     this.NewLineChars = Environment.NewLine;
     #else
     this.NewLineChars = "\r\n";
     #endif
     this.EnableFileDelete = true;
     this.OpenFileCacheTimeout = -1;
     this.OpenFileCacheSize = 5;
     this.CreateDirs = true;
     this.logEventComparer = new LogEventComparer(this);
 }