Inheritance: FileConfigurationBase
Example #1
0
 /// <summary>
 /// Initializes a new <see cref="TextFile"/> bound to its <see cref="TextFileConfiguration"/>.
 /// </summary>
 /// <param name="config">The configuration.</param>
 public TextFile( TextFileConfiguration config )
     : base( config )
 {
     if( config == null ) throw new ArgumentNullException( "config" );
     _file = new MonitorTextFileOutput( config.Path, config.MaxCountPerFile, config.UseGzipCompression );
     _file.FileWriteThrough = config.FileWriteThrough;
     _file.FileBufferSize = config.FileBufferSize;
 }
Example #2
0
 /// <summary>
 /// Initializes a new <see cref="TextFile"/> bound to its <see cref="TextFileConfiguration"/>.
 /// </summary>
 /// <param name="config">The configuration.</param>
 public TextFile(TextFileConfiguration config)
     : base(config)
 {
     if (config == null)
     {
         throw new ArgumentNullException("config");
     }
     _file = new MonitorTextFileOutput(config.Path, config.MaxCountPerFile, config.UseGzipCompression);
     _file.FileWriteThrough = config.FileWriteThrough;
     _file.FileBufferSize   = config.FileBufferSize;
 }