public interface LogInterface
| Modifier and Type | Field and Description |
|---|---|
static boolean |
debug |
static boolean |
printOnConsole |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Releases the Log's resources: ungets LogService, removes the
ServiceListener from the framework and nulls references.
|
void |
debug(String str,
Throwable e)
Logs debug information if
debug flag is true. |
void |
error(String str,
Throwable ex)
Logs error messages.
|
boolean |
getDebug()
Gets the flag, which enables logging debug messages.
|
boolean |
getPrintOnConsole()
Gets the flag, which enables printing log messages on the console.
|
void |
info(String str)
Logs info messages.
|
void |
setDebug(boolean value)
enable/diasable loging of debug info
|
void |
setPrintOnConsole(boolean value)
enable/diasable print on console
|
void |
warning(String str,
Throwable ex)
Logs warning messages.
|
static final boolean printOnConsole
static final boolean debug
void error(String str, Throwable ex)
printOnConsole is true, or if the
LogService is unavailable, log info is printed on console.str - Message description of the error.ex - Throwable object, containing the stack trace; may be null.void warning(String str, Throwable ex)
printOnConsole is true, or if
the LogService is unavailable, log info is printed on
console.str - Message description of the error.ex - Throwable object, containing the stack trace; may be null.void info(String str)
printOnConsole is true, or if the
LogService is unavailable, message is printed on console.str - Message to be logged.void debug(String str, Throwable e)
debug flag is true. If
LogService is unaccessible or printOnConsole flag is true, log info is
printed on console.str - Message description.e - Throwable object, containing the stack trace; may be null.void close()
void setPrintOnConsole(boolean value)
value - boolean if true enables print on console else disables itvoid setDebug(boolean value)
value - boolean if true enables loging of debug info else disables itboolean getDebug()
boolean getPrintOnConsole()