Class KLogLineFormatter

java.lang.Object
java.util.logging.Formatter
ch.k43.util.KLogLineFormatter

public class KLogLineFormatter extends Formatter
Format logging output as single formatted line with time stamp, logging level, code location and the logging information. The KLog.debug(), KLog.info() and KLog.error() adds the code location, delimited by Klog.DELIMITER which is then formatted here.
 Example:
 KLog.info("Program start");

 Output:
 2024-06-21T17:51:48.059 I main[1]:Test:main:21                                         Program start
 
  • Constructor Details

    • KLogLineFormatter

      public KLogLineFormatter()
      Class constructor.
  • Method Details