Class CompactLogFormatter

java.lang.Object
java.util.logging.Formatter
it.univr.di.cstnu.util.CompactLogFormatter

public class CompactLogFormatter extends Formatter
A compact formatter for java.util.logging records.

It supports the same arguments commonly used by SimpleFormatter and adds two source-specific arguments:

  • %7$s: the source method name only;
  • %8$s: the source class name without the package.
The argument %2$s is the compact source, i.e., SimpleClass.method when both source class and source method are available.
  • Field Details

    • FORMAT_PROPERTY

      public static final String FORMAT_PROPERTY
      Property used to configure the format string.
  • Constructor Details

    • CompactLogFormatter

      public CompactLogFormatter()
      Default constructor.
  • Method Details