Formatter

A Formatter is a class taking a LogRecord and converting it into a String. It is the one responsible for preparing the content to be sent to the backend. The idea is to separate the writing and formatting concerns, allowing you to reuse one part without having to create a new Handler.

Again, it is often bound to a particular Handler.

Get Java EE 8 High Performance now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.