org.apache.log4j
Class EnhancedMyPatternLayout
java.lang.Object
org.apache.log4j.Layout
org.apache.log4j.EnhancedPatternLayout
org.apache.log4j.EnhancedMyPatternLayout
- All Implemented Interfaces:
- OptionHandler
public class EnhancedMyPatternLayout
- extends EnhancedPatternLayout
Example showing how to extend EnhancedPatternLayout to recognize additional
conversion characters.
In this case MyPatternLayout recognizes %# conversion pattern. It
outputs the value of an internal counter which is also incremented
at each call.
See source code
for more details.
- Author:
- Anders Kristensen
- See Also:
MyPatternParser
,
EnhancedPatternLayout
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnhancedMyPatternLayout
public EnhancedMyPatternLayout()
EnhancedMyPatternLayout
public EnhancedMyPatternLayout(java.lang.String pattern)
createPatternParser
public PatternParser createPatternParser(java.lang.String pattern)
- Overrides:
createPatternParser
in class EnhancedPatternLayout
Copyright © 2010 The Apache Software Foundation. Licensed under the Apache License, Version 2.0
Apache Extras Companion for Apache log4j, Apache log4j and Apache are trademarks of the Apache Software Foundation.