public static interface RequestLogger.Router
Implementations can make decisions on how and if the logging should occur. For example, implementations may decide to log 5xx type outcomes differently to other outcomes.
Modifier and Type | Method and Description |
---|---|
void |
log(RequestOutcome requestOutcome,
String pattern,
Object[] args)
Logs the outcome.
|
void log(RequestOutcome requestOutcome, String pattern, Object[] args)
The pattern and args are in “slf4j format”.
That is, they can be passed directly to a method such as Logger.info(String, Object...)
.
If the final destination is not an Slf4j logger, MessageFormatter.arrayFormat(String, Object[])
can be used to generate a string.
requestOutcome
- the request outcomepattern
- the message patternargs
- the message values