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 SummaryConstructorsConstructorDescriptionNormalizedParameters(String message, Object[] arguments) NormalizedParameters(String message, Object[] arguments, Throwable throwable) 
- 
Method SummaryModifier and TypeMethodDescriptionObject[]static ThrowablegetThrowableCandidate(Object[] argArray) static NormalizedParametersThis method serves to normalize logging call invocation parameters.static NormalizedParametersnormalize(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
- 
trimmedCopyHelper 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
 
- 
normalizeThis 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
 
-