Package ch.k43.util

Klasse KLogXMLFormatter

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

public class KLogXMLFormatter extends Formatter
Format logging output as XML formatted string with UUID, 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.
  • Konstruktordetails

    • KLogXMLFormatter

      public KLogXMLFormatter()
      Class constructor.
  • Methodendetails

    • format

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

      public String getHead(Handler argHandler)
      Set header.
      Setzt außer Kraft:
      getHead in Klasse Formatter
    • getTail

      public String getTail(Handler argHandler)
      Set footer. Note: Due to a bug in the JVM, the getTail() is not called by the ConsoleHandler.
      Setzt außer Kraft:
      getTail in Klasse Formatter
    • toString

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