Class LogFormatter

java.lang.Object
java.util.logging.Formatter
io.github.coho04.githubapi.utilities.LogFormatter

public class LogFormatter extends Formatter
This class extends the Formatter class to provide a custom format for logging messages. The format includes the timestamp, source class name, log level, and the log message. If there are any parameters associated with the log record, they are also included in the log message.
  • Constructor Details

    • LogFormatter

      public LogFormatter()
  • Method Details

    • format

      public String format(LogRecord record)
      This method formats the log record as per the custom format.
      Specified by:
      format in class Formatter
      Parameters:
      record - The log record to be formatted.
      Returns:
      The formatted log record as a string.