Table of Contents

Class FormatterData

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

The name.

formatterType Type

The ILogFormatter type.

Methods

BuildFormatter()

Builds the ILogFormatter object represented by this configuration object.

public virtual ILogFormatter BuildFormatter()

Returns

ILogFormatter

A formatter.