Stack Size
Enum values to be passed into withStackTrace to control the maximum number of stack trace elements created.
Note that the precise value returned by getMaxDepth may change over time, but it can be assumed that SMALL <= MEDIUM <= LARGE <= FULL.
Entries
Link copied to clipboard
Produces a small stack suitable for more fine grained debugging. For performance reasons, this is the only stack size suitable for log statements at level INFO or finer, but is may also be useful for WARNING level log statements in cases where context is not as important. For SEVERE log statements, it is advised to use a stack size of MEDIUM or above.