org.log4mongo.contrib
Class HostInfoPatternParser

java.lang.Object
  extended by org.apache.log4j.helpers.PatternParser
      extended by org.log4mongo.contrib.HostInfoPatternParser

public class HostInfoPatternParser
extends org.apache.log4j.helpers.PatternParser

PatternParser that adds pattern converters for logging useful host-related info, specifically:


Field Summary
 
Fields inherited from class org.apache.log4j.helpers.PatternParser
currentLiteral, formattingInfo, i, pattern, patternLength
 
Constructor Summary
HostInfoPatternParser(java.lang.String pattern)
           
 
Method Summary
 void finalizeConverter(char formatChar)
          This method is called on each pattern converter character while the PatternParser superclass is parsing the pattern.
 
Methods inherited from class org.apache.log4j.helpers.PatternParser
addConverter, extractOption, extractPrecisionOption, parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HostInfoPatternParser

public HostInfoPatternParser(java.lang.String pattern)
Method Detail

finalizeConverter

public void finalizeConverter(char formatChar)
This method is called on each pattern converter character while the PatternParser superclass is parsing the pattern. If the character is for a custom converter handled by this PatternParser subclass, this class adds the appropriate converter to a LinkedList of converters. If not, it allows the superclass to handle the converter character.

Overrides:
finalizeConverter in class org.apache.log4j.helpers.PatternParser
See Also:
PatternParser.finalizeConverter(char)


Copyright © 2013. All Rights Reserved.