Package ch.k43.util

Klasse 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
 
  • Konstruktordetails

    • KLogLineFormatter

      public KLogLineFormatter()
      Class constructor.
  • Methodendetails

    • format

      public String format(LogRecord argRecord)
      Format the log message
      Angegeben von:
      format in Klasse Formatter
    • toString

      public String toString()
      String representation of object.
      Setzt außer Kraft:
      toString in Klasse Object
      Seit:
      2024.08.23