public final class Debug extends Object
Modifier and Type | Field and Description |
---|---|
static int |
Debug |
static boolean |
EnableDbg |
static boolean |
EnableError |
static boolean |
EnableInfo |
static boolean |
EnableWarn |
static int |
Error |
static int |
Fatal |
static int |
Info |
static int |
Warn |
Modifier and Type | Method and Description |
---|---|
static DebugInterface |
getDebugInterface()
Get the debug interface
|
static void |
print(String str)
Output a debug string.
|
static void |
print(String str,
int level)
Output a debug string.
|
static void |
println(Exception ex)
Output an exception trace to the debug device
|
static void |
println(Exception ex,
int level)
Output an exception trace to the debug device
|
static void |
println(String str)
Output a debug string, and a newline.
|
static void |
println(String str,
int level)
Output a debug string, and a newline.
|
static void |
println(Throwable ex)
Output an exception trace to the debug device
|
static void |
println(Throwable ex,
int level)
Output an exception trace to the debug device
|
static void |
setDebugInterface(DebugInterface dbg)
Set the debug interface
|
public static final boolean EnableInfo
public static final boolean EnableWarn
public static final boolean EnableError
public static final boolean EnableDbg
public static final int Fatal
public static final int Error
public static final int Warn
public static final int Info
public static final int Debug
public static final DebugInterface getDebugInterface()
public static final void setDebugInterface(DebugInterface dbg)
dbg
- DebugInterfacepublic static final void print(String str)
str
- java.lang.Stringpublic static final void print(String str, int level)
str
- Stringlevel
- intpublic static final void println(String str)
str
- java.lang.Stringpublic static final void println(String str, int level)
str
- Stringlevel
- intpublic static final void println(Exception ex)
ex
- Exceptionpublic static final void println(Exception ex, int level)
ex
- Exceptionlevel
- intpublic static final void println(Throwable ex)
ex
- Throwablepublic static final void println(Throwable ex, int level)
ex
- Throwablelevel
- intCopyright © 2005–2018 Alfresco Software. All rights reserved.