@Immutable
public final class Debug
extends Object
Used for temporary logging; it is easy to clean up a project by getting a list of all references to this class.
| Modifier and Type | Method and Description |
|---|---|
static void |
exit()
Exits the current program with a failure status.
|
static void |
log(String format,
Object... params)
Logs a message.
|
static void |
log(Throwable throwable)
Logs a throwable.
|
static void |
log(Throwable throwable,
String format,
Object... params)
Logs a message with a throwable.
|
static void |
logStackTrace()
Logs a stack trace of the current thread.
|
static void |
logStackTrace(String format,
Object... params)
Logs a stack trace of the current thread with a message.
|
static void |
logStackTrace(Throwable throwable)
Logs the stack trace of the current thread with a throwable.
|
static void |
logStackTrace(Throwable throwable,
String format,
Object... params)
Logs a stack trace of the current thread with a message and a throwable.
|
static void |
logStackTraces()
Logs a stack trace of each thread.
|
static void |
logStackTraces(String format,
Object... params)
Logs a stack trace of each thread with a message.
|
static void |
logStackTraces(Throwable throwable)
Logs the stack trace of each thread with a throwable.
|
static void |
logStackTraces(Throwable throwable,
String format,
Object... params)
Logs a stack trace of each thread with a message and a throwable.
|
static void |
print(String format,
Object... params)
Prints a message.
|
static void |
printStackTrace()
Prints a stack trace of the current thread.
|
static void |
printStackTrace(OutputStream outputStream)
Prints a stack trace of the current thread.
|
static void |
printStackTrace(PrintWriter printWriter)
Prints a stack trace of the current thread.
|
static void |
printStackTrace(String format,
Object... params)
Prints a stack trace of the current thread with a message.
|
static void |
printStackTraces()
Prints a stack trace of each thread.
|
static void |
printStackTraces(OutputStream outputStream)
Prints a stack traces of each thread.
|
static void |
printStackTraces(PrintWriter printWriter)
Prints a stack traces of each thread.
|
static void |
printStackTraces(String format,
Object... params)
Prints a stack trace of each thread with a message.
|
public static void exit()
public static void log(@Nonnull
Throwable throwable)
throwable - The throwable.public static void log(@Nonnull
String format,
@Nonnull
Object... params)
format - The message format.params - The message parameters.public static void log(@Nonnull
Throwable throwable,
@Nonnull
String format,
@Nonnull
Object... params)
throwable - The throwable.format - The message format.params - The message parameters (optional).public static void logStackTrace()
public static void logStackTrace(@Nonnull
Throwable throwable)
throwable - The throwable.public static void logStackTrace(@Nonnull
String format,
@Nonnull
Object... params)
format - The message format.params - The message parameters.public static void logStackTrace(@Nonnull
Throwable throwable,
@Nonnull
String format,
@Nonnull
Object... params)
throwable - The throwable.format - The message format.params - The message parameters.public static void logStackTraces()
public static void logStackTraces(@Nonnull
Throwable throwable)
throwable - The throwable.public static void logStackTraces(@Nonnull
String format,
@Nonnull
Object... params)
format - The message format.params - The message parameters.public static void logStackTraces(@Nonnull
Throwable throwable,
@Nonnull
String format,
@Nonnull
Object... params)
throwable - The throwable.format - The message format.params - The message parameters.public static void print(@Nonnull
String format,
@Nonnull
Object... params)
format - The message format.params - The message parameters.public static void printStackTrace()
public static void printStackTrace(@Nonnull
OutputStream outputStream)
outputStream - The destination output stream.public static void printStackTrace(@Nonnull
PrintWriter printWriter)
printWriter - The destination print writer.public static void printStackTrace(@Nonnull
String format,
@Nonnull
Object... params)
format - The message format.params - The message parameters.public static void printStackTraces()
public static void printStackTraces(@Nonnull
OutputStream outputStream)
outputStream - The destination output stream.public static void printStackTraces(@Nonnull
PrintWriter printWriter)
printWriter - The destination print writer.public static void printStackTraces(@Nonnull
String format,
@Nonnull
Object... params)
format - The message format.params - The message parameters.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.