log4net SDK Reference

PatternLayout Constructor (String)

Constructs a PatternLayout using the supplied conversion pattern

[Visual Basic]
Overloads Public Sub New( _
   ByVal pattern As String _
)
[C#]
public PatternLayout(
   string pattern
);

Parameters

pattern
the pattern to use

Remarks

Note to Inheritors: This constructor calls the virtual method CreatePatternParser. If you override this method be aware that it will be called before your is called constructor.

When using this constructor the ActivateOptions method need not be called. This may not be the case when using a subclass.

See Also

PatternLayout Class | log4net.Layout Namespace | PatternLayout Constructor Overload List