public @interface LoggingRule
Modifier and Type | Optional Element and Description |
---|---|
String |
codes
Defines the status codes that match this rule.
|
String |
debugOnly
Specifies whether only debug requests match against this rule.
|
String |
disabled
Disables logging entirely for this rule.
|
String |
exceptions
Defines Java exceptions that match this rule.
|
String |
level
Identifies the logging level at which to log REST calls.
|
String |
req
Identifies the level of detail to log on HTTP requests.
|
String |
res
Identifies the level of detail to log on HTTP responses.
|
String |
verbose
|
public abstract String codes
Possible values:
public abstract String debugOnly
Allows you to tailor logging on debug requests.
See the @RestResource(debug)
annotation on details of how to enable debugging.
The possible values are (case-insensitive):
public abstract String disabled
The possible values are (case-insensitive):
The No-Trace setting on a request can be set by adding RestRequest.setNoTrace(Boolean)
or
RestResponse.setNoTrace(Boolean)
methods.
Setting this value to
public abstract String exceptions
Possible values:
public abstract String level
See the Level
class for possible values.
Values are case-insensitive.
If not specified, uses the value specified by the @Logging(level)
annotation value.
Level.OFF
can be used to turn off logging.
public abstract String req
The possible values are (case-insensitive):
public abstract String res
The possible values are (case-insensitive):
public abstract String verbose
@LoggingRule(req)
and @LoggingRule(res)
.
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.