log4net SDK Reference |

# PatternLayout.CreatePatternParser Method

Create the pattern parser instance

[Visual Basic]
Overridable Protected Function CreatePatternParser( _
ByVal pattern As String _
) As PatternParser
[C#]
protected virtual PatternParser CreatePatternParser(
string pattern
);

#### Parameters

pattern
  the pattern to parse

#### Return Value

The PatternParser that will format the event

#### Remarks

Creates the PatternParser used to parse the conversion string. Sets the global and instance rules on the PatternParser.

#### See Also

PatternLayout Class | log4net.Layout Namespace