Class LoggingUtils
java.lang.Object
com.evolveum.midpoint.util.logging.LoggingUtils
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic StringdumpStackTrace(Class<?>... classesToSkip) static voidlogException(Trace LOGGER, String message, Throwable ex, Object... objects) Standard way of logging exception: message is presented at ERROR level, stack trace on DEBUG.static voidlogExceptionAsWarning(Trace LOGGER, String message, Throwable ex, Object... objects) Non-critical exceptions (warnings, with details as debug)static voidlogExceptionOnDebugLevel(Trace LOGGER, String message, Throwable ex, Object... objects) Exceptions that shouldn't be even visible on INFO level.static voidlogStackTrace(Trace LOGGER, String message) static voidlogUnexpectedException(Trace LOGGER, String message, Throwable ex, Object... objects) When logging unexpected exception, we always want to see the stack trace (so everything is logged on ERROR level)static voidlogUnexpectedException(Trace LOGGER, Throwable ex) When logging unexpected exception, we always want to see the stack trace (so everything is logged on ERROR level)
- 
Constructor Details- 
LoggingUtilspublic LoggingUtils()
 
- 
- 
Method Details- 
logExceptionStandard way of logging exception: message is presented at ERROR level, stack trace on DEBUG.
- 
logUnexpectedExceptionpublic static void logUnexpectedException(Trace LOGGER, String message, Throwable ex, Object... objects) When logging unexpected exception, we always want to see the stack trace (so everything is logged on ERROR level)
- 
logUnexpectedExceptionWhen logging unexpected exception, we always want to see the stack trace (so everything is logged on ERROR level)
- 
logExceptionAsWarningpublic static void logExceptionAsWarning(Trace LOGGER, String message, Throwable ex, Object... objects) Non-critical exceptions (warnings, with details as debug)
- 
logExceptionOnDebugLevelpublic static void logExceptionOnDebugLevel(Trace LOGGER, String message, Throwable ex, Object... objects) Exceptions that shouldn't be even visible on INFO level.
- 
logStackTrace
- 
dumpStackTrace
 
-