Class FormatterData
- Assembly
- Microsoft.Practices.EnterpriseLibrary.Logging.dll
Represents the configuration settings for a log formatter. This class is abstract.
public class FormatterData : NameTypeConfigurationElement
- Inheritance
-
FormatterData
- Derived
Constructors
FormatterData()
Initializes a new instance of the FormatterData class.
public FormatterData()
FormatterData(string, Type)
Initializes a new instance of the FormatterData class with a name and a formatter type.
public FormatterData(string name, Type formatterType)
Parameters
name
stringThe name.
formatterType
TypeThe ILogFormatter type.
Methods
BuildFormatter()
Builds the ILogFormatter object represented by this configuration object.
public virtual ILogFormatter BuildFormatter()
Returns
- ILogFormatter
A formatter.