Name
SimpleFormatter
Synopsis
This Formatter
subclass converts a LogRecord
object to a
human-readable log message that is typically one or two lines long.
See also XMLFormatter
.
Figure 16-120. java.util.logging.SimpleFormatter
public class SimpleFormatter extends java.util.logging.Formatter { // Public Constructors public SimpleFormatter( ); // Public Methods Overriding Formatter public String format(LogRecord record); synchronized }
Get Java in a Nutshell, 5th Edition 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.