Class RollingFlatFileTraceListenerData
- Assembly
- Microsoft.Practices.EnterpriseLibrary.Logging.dll
Represents the configuration data for a RollingFlatFileTraceListener.
public class RollingFlatFileTraceListenerData : TraceListenerData
- Inheritance
-
RollingFlatFileTraceListenerData
- Inherited Members
Constructors
RollingFlatFileTraceListenerData()
Initializes a new instance of the TraceListenerData class.
public RollingFlatFileTraceListenerData()
RollingFlatFileTraceListenerData(string, string, string, string, int, string, RollFileExistsBehavior, RollInterval, TraceOptions, string)
Initializes a new instance of the RollingFlatFileTraceListenerData class.
public RollingFlatFileTraceListenerData(string name, string fileName, string header, string footer, int rollSizeKB, string timeStampPattern, RollFileExistsBehavior rollFileExistsBehavior, RollInterval rollInterval, TraceOptions traceOutputOptions, string formatter)
Parameters
name
stringThe name for the configuration object.
fileName
stringheader
stringfooter
stringrollSizeKB
inttimeStampPattern
stringrollFileExistsBehavior
RollFileExistsBehaviorrollInterval
RollIntervaltraceOutputOptions
TraceOptionsThe trace options.
formatter
string
RollingFlatFileTraceListenerData(string, string, string, string, int, string, RollFileExistsBehavior, RollInterval, TraceOptions, string, SourceLevels)
Initializes a new instance of the RollingFlatFileTraceListenerData class.
public RollingFlatFileTraceListenerData(string name, string fileName, string header, string footer, int rollSizeKB, string timeStampPattern, RollFileExistsBehavior rollFileExistsBehavior, RollInterval rollInterval, TraceOptions traceOutputOptions, string formatter, SourceLevels filter)
Parameters
name
stringThe name for the configuration object.
fileName
stringheader
stringfooter
stringrollSizeKB
inttimeStampPattern
stringrollFileExistsBehavior
RollFileExistsBehaviorrollInterval
RollIntervaltraceOutputOptions
TraceOptionsThe trace options.
formatter
stringfilter
SourceLevelsThe filter to apply.
Properties
FileName
FileName
public string FileName { get; set; }
Property Value
Footer
Gets and sets the footer.
public string Footer { get; set; }
Property Value
Formatter
Gets and sets the formatter name.
public string Formatter { get; set; }
Property Value
Header
Gets and sets the header.
public string Header { get; set; }
Property Value
MaxArchivedFiles
Max rolled files
public int MaxArchivedFiles { get; set; }
Property Value
RollFileExistsBehavior
Exists Behavior
public RollFileExistsBehavior RollFileExistsBehavior { get; set; }
Property Value
RollInterval
Roll Intervall
public RollInterval RollInterval { get; set; }
Property Value
RollSizeKB
Roll Size KB
public int RollSizeKB { get; set; }
Property Value
TimeStampPattern
Time stamp
public string TimeStampPattern { get; set; }
Property Value
Methods
CoreBuildTraceListener(LoggingSettings)
Builds the TraceListener object represented by this configuration object.
protected override TraceListener CoreBuildTraceListener(LoggingSettings settings)
Parameters
settings
LoggingSettingsThe logging configuration settings.
Returns
- TraceListener
A trace listener.