NONE
Provides no stack trace, making the withStackTrace() method an effective no-op. This is useful when your stack size is conditional. For example:
logger.atWarning()
.withStackTrace(showTrace ? StackSize.MEDIUM : StackSize.NONE)
.log("message");
Content copied to clipboard