Table of Contents

Class RollingFlatFileTraceListenerData

Namespace
Microsoft.Practices.EnterpriseLibrary.Logging.Configuration
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 string

The name for the configuration object.

fileName string
header string
footer string
rollSizeKB int
timeStampPattern string
rollFileExistsBehavior RollFileExistsBehavior
rollInterval RollInterval
traceOutputOptions TraceOptions

The 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 string

The name for the configuration object.

fileName string
header string
footer string
rollSizeKB int
timeStampPattern string
rollFileExistsBehavior RollFileExistsBehavior
rollInterval RollInterval
traceOutputOptions TraceOptions

The trace options.

formatter string
filter SourceLevels

The filter to apply.

Properties

FileName

FileName

public string FileName { get; set; }

Property Value

string

Gets and sets the footer.

public string Footer { get; set; }

Property Value

string

Formatter

Gets and sets the formatter name.

public string Formatter { get; set; }

Property Value

string

Header

Gets and sets the header.

public string Header { get; set; }

Property Value

string

MaxArchivedFiles

Max rolled files

public int MaxArchivedFiles { get; set; }

Property Value

int

RollFileExistsBehavior

Exists Behavior

public RollFileExistsBehavior RollFileExistsBehavior { get; set; }

Property Value

RollFileExistsBehavior

RollInterval

Roll Intervall

public RollInterval RollInterval { get; set; }

Property Value

RollInterval

RollSizeKB

Roll Size KB

public int RollSizeKB { get; set; }

Property Value

int

TimeStampPattern

Time stamp

public string TimeStampPattern { get; set; }

Property Value

string

Methods

CoreBuildTraceListener(LoggingSettings)

Builds the TraceListener object represented by this configuration object.

protected override TraceListener CoreBuildTraceListener(LoggingSettings settings)

Parameters

settings LoggingSettings

The logging configuration settings.

Returns

TraceListener

A trace listener.