public static interface RequestLogger.Formatter
Ratpack provides the RequestLogger.ncsaFormatter()
.
This can be used in conjunction with the RequestLogger.of(Action)
method, for fine grained control of how and when requests are logged.
Implementations should generally inspect the request outcome to determine if it needs to be logged,
and only calling the formatter if a log line is actually needed.
RequestLogger.of(Action)
,
RequestLogger.ncsaFormatter()
Modifier and Type | Method and Description |
---|---|
String |
format(RequestOutcome requestOutcome)
Generates a line of logging, representing the given outcome.
|
String format(RequestOutcome requestOutcome)
requestOutcome
- the request outcome