Documentation of 'org.clapper.util.logging.JavaUtilLoggingTextFormatter' Java class
JavaUtilLoggingTextFormatter
org.clapper.util.logging

Class JavaUtilLoggingTextFormatter



  • public class JavaUtilLoggingTextFormatter
    extends java.util.logging.Formatter
    Implements a log formatter for the java.util.logging infrastructure that formats each non-exception log record as a simple, single-line text string. (Exception stack traces will cause a message to consume multiple lines.) This formatter currently cannot be configured in any way, though that may change in subsequent releases. The output format is similar to Log4J's PatternLayout class, with a format of "%d %-5p (%c{1}): %m%n".
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String format(java.util.logging.LogRecord record)
      Format the given log record and return the formatted string.
      • Methods inherited from class java.util.logging.Formatter

        formatMessage, getHead, getTail
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JavaUtilLoggingTextFormatter

        public JavaUtilLoggingTextFormatter()
        Create a new JavaUtilLoggingTextLogFormatter.
    • Method Detail

      • format

        public java.lang.String format(java.util.logging.LogRecord record)

        Format the given log record and return the formatted string.

        The resulting formatted String will normally include a localized and formated version of the LogRecord's message field.

        Specified by:
        format in class java.util.logging.Formatter
        Parameters:
        record - the log record to be formatted
        Returns:
        the formatted log record

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.