public class RestCallLoggerConfig extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RestCallLoggerConfig.Builder
Builder for
RestCallLoggerConfig objects. |
Modifier and Type | Field and Description |
---|---|
static RestCallLoggerConfig |
DEFAULT
Default empty logging config.
|
static RestCallLoggerConfig |
DEFAULT_DEBUG
Default debug logging config.
|
Modifier and Type | Method and Description |
---|---|
static RestCallLoggerConfig.Builder |
create()
Creates a builder for this class.
|
Level |
getLevel()
Returns the default logging level.
|
RestCallLoggerRule |
getRule(HttpServletRequest req,
HttpServletResponse res)
Given the specified servlet request/response, find the rule that applies to it.
|
List<RestCallLoggerRule> |
getRules()
Returns the rules defined in this config.
|
int |
getStackTraceHashingTimeout()
Returns the time in milliseconds that stacktrace hashes should be persisted.
|
boolean |
isDisabled(HttpServletRequest req)
Returns
|
boolean |
isUseStackTraceHashing()
Returns
|
ObjectMap |
toMap()
Returns the properties defined on this bean context as a simple map for debugging purposes.
|
String |
toString() |
public static final RestCallLoggerConfig DEFAULT
public static final RestCallLoggerConfig DEFAULT_DEBUG
public static RestCallLoggerConfig.Builder create()
public RestCallLoggerRule getRule(HttpServletRequest req, HttpServletResponse res)
req
- The servlet request.res
- The servlet response.public boolean isDisabled(HttpServletRequest req)
req
- The HTTP request.public Level getLevel()
public boolean isUseStackTraceHashing()
public int getStackTraceHashingTimeout()
public List<RestCallLoggerRule> getRules()
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.