public final class Logs extends Object
Set -Dsisu.debug to send detailed tracing to the console.
| Modifier and Type | Field and Description |
|---|---|
static String |
NEW_LINE |
static boolean |
TRACE_ENABLED |
| Modifier and Type | Method and Description |
|---|---|
static void |
catchThrowable(Throwable problem)
Helper method for catching
Throwables; severe errors such as ThreadDeath are always re-thrown. |
static String |
identityToString(Object object)
Returns an identity string for the given object.
|
static void |
throwUnchecked(Throwable problem)
Helper method for throwing
Throwables; checked exceptions are wrapped as ProvisionExceptions. |
static String |
toString(com.google.inject.Injector injector)
Returns a string representation of the given
Injector. |
static String |
toString(com.google.inject.Module module)
Returns a string representation of the given
Module. |
static void |
trace(String format,
Object arg1,
Object arg2)
Logs a trace message; uses "{}" format anchors.
|
static void |
warn(String format,
Object arg1,
Object arg2)
Logs a warning message; uses "{}" format anchors.
|
public static final String NEW_LINE
public static final boolean TRACE_ENABLED
public static void trace(String format, Object arg1, Object arg2)
Throwables in last parameter for special handling.format - The trace message formatarg1 - First object to formatarg2 - Second object to formatpublic static void warn(String format, Object arg1, Object arg2)
Throwables in last parameter for special handling.format - The warning message formatarg1 - First object to formatarg2 - Second object to formatpublic static void catchThrowable(Throwable problem)
Throwables; severe errors such as ThreadDeath are always re-thrown.problem - The problempublic static void throwUnchecked(Throwable problem)
Throwables; checked exceptions are wrapped as ProvisionExceptions.problem - The problempublic static String identityToString(Object object)
object - The objectSystem.identityHashCode(Object)public static String toString(com.google.inject.Module module)
Module.module - The modulepublic static String toString(com.google.inject.Injector injector)
Injector.injector - The injectorCopyright © 2016. All Rights Reserved.