Class FormattedEventLogTraceListenerData
- Assembly
- Microsoft.Practices.EnterpriseLibrary.Logging.dll
Represents the configuration settings that describe a FormattedEventLogTraceListener.
public class FormattedEventLogTraceListenerData : TraceListenerData
- Inheritance
-
FormattedEventLogTraceListenerData
- Inherited Members
Constructors
FormattedEventLogTraceListenerData()
Initializes a FormattedEventLogTraceListenerData.
public FormattedEventLogTraceListenerData()
FormattedEventLogTraceListenerData(string, string)
Initializes a FormattedEventLogTraceListenerData with a source name and a formatter name.
public FormattedEventLogTraceListenerData(string source, string formatterName)
Parameters
FormattedEventLogTraceListenerData(string, string, string)
Initializes a named instance of FormattedEventLogTraceListenerData with name, source name and formatter name.
public FormattedEventLogTraceListenerData(string name, string source, string formatterName)
Parameters
name
stringThe name.
source
stringThe event log source name.
formatterName
stringThe formatter name.
FormattedEventLogTraceListenerData(string, string, string, string, string)
Initializes a named instance of FormattedEventLogTraceListenerData with name, source name log name, machine name, and formatter name.
public FormattedEventLogTraceListenerData(string name, string source, string logName, string machineName, string formatterName)
Parameters
name
stringThe name.
source
stringThe event log source name.
logName
stringThe log name.
machineName
stringThe machine name.
formatterName
stringThe formatter name.
FormattedEventLogTraceListenerData(string, string, string, string, string, TraceOptions)
Initializes a named instance of FormattedEventLogTraceListenerData with name, source name log name, machine name, formatter name, and TraceOptions.
public FormattedEventLogTraceListenerData(string name, string source, string logName, string machineName, string formatterName, TraceOptions traceOutputOptions)
Parameters
name
stringThe name.
source
stringThe event log source name.
logName
stringThe log name.
machineName
stringThe machine name.
formatterName
stringThe formatter name.
traceOutputOptions
TraceOptionsThe output options.
Properties
Formatter
Gets or sets the name of the formatter for the FormattedEventLogTraceListenerData.
public string Formatter { get; set; }
Property Value
Log
Gets or sets the name of the log for the FormattedEventLogTraceListenerData.
public string Log { get; set; }
Property Value
MachineName
Gets or sets the name of the machine for the FormattedEventLogTraceListenerData.
public string MachineName { get; set; }
Property Value
Source
Gets or sets the event log source of the FormattedEventLogTraceListenerData.
public string Source { 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.