/// <summary>
 /// Initializes a new instance of <see cref="FlatFileTraceListener"/> with a file name, a header, a footer and
 /// a <see cref="ILogFormatter"/>.
 /// </summary>
 /// <param name="fileName">The file stream.</param>
 /// <param name="header">The header.</param>
 /// <param name="footer">The footer.</param>
 /// <param name="formatter">The formatter.</param>
 public FlatFileTraceListener(string fileName, string header = null, string footer = null, ILogFormatter formatter = null)
     : base(EnvironmentHelper.ReplaceEnvironmentVariables(fileName), formatter)
 {
     this.header = header ?? string.Empty;
     this.footer = footer ?? string.Empty;
 }
Exemple #2
0
 public FlatFileTraceListener(string fileName, string header, string footer)
     : base(EnvironmentHelper.ReplaceEnvironmentVariables(fileName))
 {
     this.header = header;
     this.footer = footer;
 }
Exemple #3
0
 public FlatFileTraceListener(string fileName, string name, ILogFormatter formatter)
     : base(EnvironmentHelper.ReplaceEnvironmentVariables(fileName), name, formatter)
 {
 }
Exemple #4
0
 public FlatFileTraceListener(string fileName)
     : base(EnvironmentHelper.ReplaceEnvironmentVariables(fileName))
 {
 }