Overview

The logging enhancer project extends the JDK logging (first found in JDK 1.4) with extra formatters and handlers.

The JDK logging framework generates LogRecord objects which are formatted by Formatter objects and output by Handler objects. The JDK's Formatter is similar to log4j's Layout while a Handler is similar in concept to a log4j Appender.

This project extends the JDK logging framework by adding:

  • Templating formatter - formats the log record using a pattern
  • SingleLine formatter - also formats the log record using a pattern, but outputs things on one line (helpful for stack-traces)
  • Email handler - asynchronously emails log records to a specific email address

A simple overview of JDK logging looks like this:
JDK logging overview