public class StackUtil extends Object
| Constructor and Description |
|---|
StackUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
getShortStackTrace()
Returns string representation of the stack trace of the current call
without the call to the
getShortStackTrace itself, and ignoring
usually irrelevant calls to methods in sun. and java.lang.reflect
packages. |
static Object |
getShortStackTrace(String prefix)
Returns string representation of the stack trace of the current call
without the call to the
getShortStackTrace itself, and ignoring
usually irrelevant calls to methods in sun. and java.lang.reflect
packages. |
static boolean |
isShortStackTraceEnabled() |
public static Object getShortStackTrace()
getShortStackTrace itself, and ignoring
usually irrelevant calls to methods in sun. and java.lang.reflect
packages. The stack trace ignores calls before and including the first
org.jboss.resteasy method, hence it usually finishes with the
method handling respective REST endpoint.
Each line of the stack trace is prepended with "\n ".org.keycloak.STACK_TRACE is set to trace
level, then returns stack trace, else returns empty StringBuilderpublic static Object getShortStackTrace(String prefix)
getShortStackTrace itself, and ignoring
usually irrelevant calls to methods in sun. and java.lang.reflect
packages. The stack trace ignores calls before and including the first
org.jboss.resteasy method, hence it usually finishes with the
method handling respective REST endpoint.prefix - Prefix to prepend to every stack trace lineorg.keycloak.STACK_TRACE is set to trace
level, then returns stack trace, else returns empty StringBuilderpublic static boolean isShortStackTraceEnabled()
Copyright © 2021 JBoss by Red Hat. All rights reserved.