public class Logger
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEBUG
Logger level DEBUG
|
static int |
ERROR
Logger level ERROR
|
static int |
INFO
Logger level INFO
|
static int |
WARNING
Logger level WARNING
|
| Constructor and Description |
|---|
Logger() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
Init(java.lang.String strConfigFile)
Initialize the logger from a configuration file
|
static boolean |
Log(int iLevel,
boolean bHardLog,
java.lang.String strMsg)
Log a specific message to the level
|
public static final int ERROR
public static final int WARNING
public static final int INFO
public static final int DEBUG
public static boolean Init(java.lang.String strConfigFile)
strConfigFile - Configuration file containing the logger file locationpublic static boolean Log(int iLevel,
boolean bHardLog,
java.lang.String strMsg)
iLevel - the level of message (ERROR/WARNING/INFO/DEBUG)bHardLog - whether the logging is to file/DB (true) or to screen (false)strMsg - Message to be logged