public final class CallStackUtils
extends java.lang.Object
CallStack
.限定符和类型 | 方法和说明 |
---|---|
static CallStack |
newCallStack(java.lang.String messageFormat,
boolean useTimestamp)
|
static CallStack |
newCallStack(java.lang.String messageFormat,
boolean useTimestamp,
boolean requireFullStackTrace)
Constructs a new
CallStack using the fasted allowed strategy. |
@Deprecated public static CallStack newCallStack(java.lang.String messageFormat, boolean useTimestamp)
CallStack
using the fastest allowed strategy.messageFormat
- message (or format) to print first in stack tracesuseTimestamp
- if true, interpret message as a SimpleDateFormat and print the created timestamp; otherwise,
print message format literallypublic static CallStack newCallStack(java.lang.String messageFormat, boolean useTimestamp, boolean requireFullStackTrace)
CallStack
using the fasted allowed strategy.messageFormat
- message (or format) to print first in stack tracesuseTimestamp
- if true, interpret message as a SimpleDateFormat and print the created timestamp;
otherwise, print message format literallyrequireFullStackTrace
- if true, forces the use of a stack walking mechanism that includes full stack trace
information; otherwise, uses a faster implementation if possible