public class DefaultLogger extends Object implements LoggerInterface
| Constructor and Description |
|---|
DefaultLogger() |
| Modifier and Type | Method and Description |
|---|---|
void |
debug(String txt)
Writes a log at DEBUG level.
|
void |
error(String txt)
Writes a log at ERROR level.
|
void |
errorEx(String txt,
Throwable e)
Writes a log at ERROR level with detail on exception.
|
void |
fatal(String txt)
Writes a log at FATAL level.
|
void |
fatalEx(String txt,
Throwable e)
Writes a log at ERROR level with detail on exception.
|
void |
info(String txt)
Writes a log at INFO level.
|
protected void |
log(PrintStream out,
int level,
String txt,
Throwable e)
Method to output a log.
|
void |
warn(String txt)
Writes a log at WARN level.
|
void |
warnEx(String txt,
Throwable e)
Writes a log at WARN level with detail on exception.
|
protected void log(PrintStream out, int level, String txt, Throwable e)
out - Output stream.level - Log level.txt - Text to log.e - Exception.public void debug(String txt)
LoggerInterfacedebug in interface LoggerInterfacetxt - String to write.public void info(String txt)
LoggerInterfaceinfo in interface LoggerInterfacetxt - String to write.public void warn(String txt)
LoggerInterfacewarn in interface LoggerInterfacetxt - String to write.public void warnEx(String txt, Throwable e)
LoggerInterfacewarnEx in interface LoggerInterfacetxt - String to write.e - Exception.public void error(String txt)
LoggerInterfaceerror in interface LoggerInterfacetxt - String to write.public void errorEx(String txt, Throwable e)
LoggerInterfaceerrorEx in interface LoggerInterfacetxt - String to write.e - Exception.public void fatal(String txt)
LoggerInterfacefatal in interface LoggerInterfacetxt - String to write.public void fatalEx(String txt, Throwable e)
LoggerInterfacefatalEx in interface LoggerInterfacetxt - String to write.e - Exception.