Package org.apache.juneau.rest.logger
Class BasicCallLogger
java.lang.Object
org.apache.juneau.rest.logger.CallLogger
org.apache.juneau.rest.logger.BasicCallLogger
Basic implementation of a call logger.
Configured Settings:
- Logs to the
context logger
. - Only calls with status code >=400 will be logged.
- Logs full request and response entity.
See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.juneau.rest.logger.CallLogger
CallLogger.Builder, CallLogger.Void
-
Field Summary
Fields inherited from class org.apache.juneau.rest.logger.CallLogger
SP_enabled, SP_level, SP_logger, SP_requestDetail, SP_responseDetail
-
Constructor Summary
ConstructorDescriptionConstructor using default settings.BasicCallLogger
(BeanStore beanStore) Constructor using specific settings. -
Method Summary
-
Constructor Details
-
BasicCallLogger
Constructor using specific settings.- Parameters:
beanStore
- The bean store containing injectable beans for this logger.
-
BasicCallLogger
public BasicCallLogger()Constructor using default settings.Uses the same settings as
CallLogger
.
-
-
Method Details
-
init
Description copied from class:CallLogger
Initializer.Subclasses should override this method to make modifications to the builder used to create this logger.
- Overrides:
init
in classCallLogger
- Parameters:
beanStore
- The bean store containing injectable beans for this logger.- Returns:
- A new builder object.
-