public class Logger extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BUF_SIZE |
static int |
DEBUG |
static int |
INFO |
static int |
WARNING |
| Modifier and Type | Method and Description |
|---|---|
void |
flush() |
void |
log(String msg,
String level) |
void |
logDebug(String msg) |
void |
logFatal(String msg) |
void |
logInfo(String msg) |
void |
logMsgOnly(String msg) |
void |
logWarning(String msg) |
void |
setDebug(boolean debug) |
void |
setInfo(boolean info) |
void |
setPrintConsole(boolean printConsole) |
void |
setWarning(boolean warning) |
public static final int INFO
public static final int WARNING
public static final int DEBUG
public static int BUF_SIZE
public Logger(String logfile) throws IOException
logfile - file path where the log should be writtenIOExceptionpublic Logger()
public void logDebug(String msg)
public void logInfo(String msg)
public void logWarning(String msg)
public void logFatal(String msg)
public void logMsgOnly(String msg)
public void setDebug(boolean debug)
public void setInfo(boolean info)
public void setWarning(boolean warning)
public void setPrintConsole(boolean printConsole)
public void flush()