com.hazelcast.util
public final class DebugUtil extends Object
Modifier and Type | Method and Description |
---|---|
static void |
appendStackTrace(File file)
Appends the stacktrace of the current thread to a file.
|
static void |
appendWithNewLine(File file,
String s)
Appends text to a file.
|
static void |
printStackTrace(String msg)
Prints the stacktrace of the calling thread to System.out.
|
public static void printStackTrace(String msg)
msg
- debug messagepublic static void appendStackTrace(File file)
file
- the file to which the stacktrace of the current thread is appended.NullPointerException
- if file is null.public static void appendWithNewLine(File file, String s)
file
- the file to which text is appended.s
- the text to append to the file.NullPointerException
- if file is nullCopyright © 2015 Hazelcast, Inc.. All Rights Reserved.