public class VersionPatternLayout
extends org.apache.log4j.EnhancedPatternLayout
EnhancedPatternLayout
which supports logging of the "Implementation-Version" string
obtained from the manifest of the jar that
VersionPatternParser
is loaded from.
To include this version string in log output, add %v
to the logging conversion pattern string.
VersionPatternLayout
,
VersionPatternParser
Constructor and Description |
---|
VersionPatternLayout() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.log4j.helpers.PatternParser |
createPatternParser(java.lang.String pattern) |