Package org.slf4j.helpers
Class NormalizedParameters
java.lang.Object
org.slf4j.helpers.NormalizedParameters
Holds normalized call parameters.
Includes utility methods such as
normalize(String, Object[], Throwable)
to help the normalization of parameters.- Since:
- 2.0
- Author:
- ceki
-
Constructor Summary
ConstructorDescriptionNormalizedParameters
(String message, Object[] arguments) NormalizedParameters
(String message, Object[] arguments, Throwable throwable) -
Method Summary
Modifier and TypeMethodDescriptionObject[]
static Throwable
getThrowableCandidate
(Object[] argArray) static NormalizedParameters
This method serves to normalize logging call invocation parameters.static NormalizedParameters
normalize
(LoggingEvent event) static Object[]
trimmedCopy
(Object[] argArray) Helper method to get all but the last element of an array
-
Constructor Details
-
NormalizedParameters
-
NormalizedParameters
-
-
Method Details
-
getMessage
-
getArguments
-
getThrowable
-
getThrowableCandidate
-
trimmedCopy
Helper method to get all but the last element of an array- Parameters:
argArray
- The arguments from which we want to remove the last element- Returns:
- a copy of the array without the last element
-
normalize
This method serves to normalize logging call invocation parameters. More specifically, if a throwable argument is not supplied directly, it attempts to extract it from the argument array. -
normalize
-