Example #1
0
 /// <summary>
 /// Initializes the traceHandlerStreamWriter object
 /// </summary>
 /// <param name="traceSource">Trace source that holds a set of handlers</param>
 /// <param name="filterLevels">The level of trace message filtered by trace listener</param>
 /// <param name="traceOptions">Trace data options that has to be written in the trace output</param>
 /// <param name="traceFileFormat">File format component for the handler</param>
 /// <param name="fileExtension">Extension of trace file name for each handler</param>
 public Writer(TraceSource traceSource, SourceLevels filterLevels, TraceOptions traceOptions, ITraceFileFormat traceFileFormat, string fileExtension = "txt")
 {
     this.traceSource     = traceSource;
     this.filterLevels    = filterLevels;
     this.traceOptions    = traceOptions;
     this.traceFileFormat = traceFileFormat;
     this.fileExtension   = fileExtension;
 }
Example #2
0
 /// <summary>
 /// Initializes the traceHandlerStreamWriter object
 /// </summary>
 /// <param name="traceSource">Trace source that holds a set of handlers</param>
 /// <param name="filterLevels">The level of trace message filtered by trace listener</param>
 /// <param name="traceOptions">Trace data options that has to be written in the trace output</param>
 /// <param name="traceFileFormat">File format component for the handler</param>
 /// <param name="fileExtension">Extension of trace file name for each handler</param>
 public Writer(TraceSource traceSource, SourceLevels filterLevels, TraceOptions traceOptions, ITraceFileFormat traceFileFormat, string fileExtension = "txt")
 {
     this.traceSource = traceSource;
     this.filterLevels = filterLevels;
     this.traceOptions = traceOptions;
     this.traceFileFormat = traceFileFormat;
     this.fileExtension = fileExtension;
 }
Example #3
0
 /// <summary>
 /// Initializes trace handler to write text data
 /// </summary>
 /// <param name="traceSource">Trace source that holds a set of handlers</param>
 /// <param name="filterLevels">The level of trace message filtered by trace listener</param>
 /// <param name="traceOptions">Trace data options that has to be written in the trace output</param>
 /// <param name="traceFileFormat">File format component for the handler</param>
 public FileTraceHandler(TraceSource traceSource, SourceLevels filterLevels, TraceOptions traceOptions, ITraceFileFormat traceFileFormat)
     : base(traceSource, filterLevels, traceOptions, traceFileFormat)
 {
 }
Example #4
0
 /// <summary>
 /// Initializes trace handler to write trace data in event viewer
 /// </summary>
 /// <param name="traceSource">Trace source that holds a set of handlers</param>
 /// <param name="filterLevels">The level of trace message filtered by trace listener</param>
 /// <param name="traceOptions">Trace data options that has to be written in the trace output</param>
 /// <param name="traceFileFormat">File format component for the handler</param>
 public EventLogTraceHandler(TraceSource traceSource, SourceLevels filterLevels, TraceOptions traceOptions, ITraceFileFormat traceFileFormat)
     : base(traceSource, filterLevels, traceOptions, traceFileFormat, "evt")
 {
 }