public class AndHowLogFormatter extends Formatter
This implementation is based on SimpleFormatter with some changes to
use a custom format that varies based on the log level. The 'severe' level prints text in red.
| Modifier and Type | Field and Description |
|---|---|
static String |
ANSI_CYAN |
static String |
ANSI_RED |
static String |
ANSI_RESET |
| Constructor and Description |
|---|
AndHowLogFormatter() |
| Modifier and Type | Method and Description |
|---|---|
String |
format(LogRecord record)
Format a LogRecord into a string to be displayed (typically on the console).
|
formatMessage, getHead, getTailpublic static final String ANSI_RESET
public static final String ANSI_RED
public static final String ANSI_CYAN
public String format(LogRecord record)
This implementation is based on SimpleFormatter with some changes to
use a custom format that varies based on the log level. The 'severe' level prints text in red.
Copyright © 2022. All rights reserved.