This class is the equivalent to the
PatternLayout
found in Log4j. As far as possible all conversions should be available.
Q: How do I setup the PatternFormatter in my microlog.properties file? A: You use the microlog.formatter.PatternFormatter.pattern property to set the pattern for the PatternFormatter. Example: # Set the pattern for the PatternFormatter microlog.formatter.PatternFormatter.pattern=%r %c %m %T This would print the relative logging time, the name of the Logger, the logged message and the Throwable object (if not null). The available pattern conversions are: %i : the client id %c : prints the name of the Logger %d : prints the date (absolute time) %m : prints the logged message %P : prints the priority, i.e. Level of the message. %r : prints the relative time of the logging. (The first logging is done at time 0.) %t : prints the thread name. %T : prints the Throwable object. %% : prints the '%' sign.
@author Johan Karlsson (johan.karlsson@jayway.se)
@since 0.6