Ejemplo n.º 1
0
 /// <summary>
 /// Intializes the trace file format component
 /// </summary>
 /// <param name="isDirectoryPerTrace">True if new directory has to be created for each trace name                        </param>
 /// <param name="fileFormat">The format of the trace file name</param>
 /// <param name="traceName">The name of the trace</param>
 /// <param name="maxFileSize">Maximum size of the trace file</param>
 /// <param name="tracePostion">Position of the trace name in trace file name</param>
 public TraceFileFormat(bool isDirectoryPerTrace, string fileFormat, string traceName, int maxFileSize, int tracePostion)
 {
     this.dateTimeKeyValuePair = new Dictionary <string, string>();
     this.isDirectoryPerTrace  = isDirectoryPerTrace;
     this.fileNameFormat       = fileFormat;
     this.maxFileSize          = maxFileSize;
     this.traceName            = traceName;
     this.traceNamePosition    = (TraceNamePosition)tracePostion;
     this.formatArray          = this.fileNameFormat.Split(new char[] { '[', ']' }, StringSplitOptions.RemoveEmptyEntries);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Intializes the trace file format component
 /// </summary>
 /// <param name="isDirectoryPerTrace">True if new directory has to be created for each trace name                        </param>
 /// <param name="fileFormat">The format of the trace file name</param>
 /// <param name="traceName">The name of the trace</param>
 /// <param name="maxFileSize">Maximum size of the trace file</param>
 /// <param name="tracePostion">Position of the trace name in trace file name</param>
 public TraceFileFormat(bool isDirectoryPerTrace, string fileFormat, string traceName, int maxFileSize, int tracePostion)
 {
     this.dateTimeKeyValuePair = new Dictionary<string, string>();
     this.isDirectoryPerTrace = isDirectoryPerTrace;
     this.fileNameFormat = fileFormat;
     this.maxFileSize = maxFileSize;
     this.traceName = traceName;
     this.traceNamePosition = (TraceNamePosition)tracePostion;
     this.formatArray = this.fileNameFormat.Split(new char[] { '[', ']' }, StringSplitOptions.RemoveEmptyEntries);
 }