Previous Page | Next Page

Pattern Layout

Syntax for a Pattern Layout

XML Configuration
<appender class="AppenderName" name="log-name">
<layout>
<param name="Header" value="header-text"/>
<param name="HeaderPattern" value="conversion-pattern"/>
<param name="ConversionPattern" value="conversion-pattern"/>
<param name="Footer" value="footer-text"/>
<param name="FooterPattern" value="conversion-pattern"/>
<param name="XmlEscape" value="TRUE | FALSE"/>
</layout>
</appender>

Note:   

A pattern layout is configured by using the <layout> and </layout> elements. Any <appender> element attributes and subelements in the syntax are present to show the context for the pattern layout elements.  [cautionend]

Previous Page | Next Page | Top of Page