PatternLayout CreatePatternParser Method | Apache log4net™ SDK Documentation

Create the pattern parser instance

Namespace: log4net.Layout
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    protected virtual PatternParser CreatePatternParser(
    	string pattern
    )

    Protected Overridable Function CreatePatternParser (
    	pattern As String
    ) As PatternParser

    protected:
    virtual PatternParser^ CreatePatternParser(
    	String^ pattern
    )

    abstract CreatePatternParser :
            pattern : string -> PatternParser
    override CreatePatternParser :
            pattern : string -> PatternParser

#### Parameters

pattern
  Type: System
  String
  the pattern to parse

#### Return Value

Type: PatternParser
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

#### Reference

PatternLayout Class
log4net.Layout Namespace