public class VersionPatternConverter
extends org.apache.log4j.helpers.PatternConverter
PatternConverter
that returns the "Implementation-Version" string obtained from the
manifest of the jar that this class was loaded from.
If this class was not loaded from a jar file or if
the manifest cannot be loaded, a default version string
of unknown
is returned.
VersionPatternLayout
,
VersionPatternParser
Constructor and Description |
---|
VersionPatternConverter() |
VersionPatternConverter(org.apache.log4j.helpers.FormattingInfo fi) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
convert(org.apache.log4j.spi.LoggingEvent event) |