Class VerySimpleFormatter


  • public class VerySimpleFormatter
    extends java.util.logging.Formatter
    This is a logging formatter doing not much more than the bare minimum. We don't log the source class/method, we log the level only if WARNING or SEVERE. Exceptions are logged if given, but otherwise it is more like printing to stdout, just that it is configurable and it is possible to have a more verbose log in parallel.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String LINE_SEPARATOR  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String format​(java.util.logging.LogRecord record)  
      • Methods inherited from class java.util.logging.Formatter

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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LINE_SEPARATOR

        public static final java.lang.String LINE_SEPARATOR
    • Constructor Detail

      • VerySimpleFormatter

        public VerySimpleFormatter()
    • Method Detail

      • format

        public java.lang.String format​(java.util.logging.LogRecord record)
        Specified by:
        format in class java.util.logging.Formatter