|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bibalex.daf.managers.logmanager.LogManager
public class LogManager
Field Summary | |
---|---|
private static org.apache.log4j.Logger |
logger
Holds the logger instance used to log events throughout the program. |
Constructor Summary | |
---|---|
LogManager()
|
Method Summary | |
---|---|
static void |
debug(java.lang.Object message)
Writes the given message as a category 'Debug' message. |
static void |
error(java.lang.Object message)
Writes the given message as a category 'Error' message. |
static void |
fatal(java.lang.Object message)
Writes the given message as a category'Fatal' message. |
static void |
info(java.lang.Object message)
Writes the given message as a category 'Info' message. |
static void |
init()
Initializes the LogManager underlying logger. |
private static void |
pushNDC()
Pushs the machine name into the NDC. |
static java.lang.String |
readLog()
Reads a certain number of characters from the log file. Note: The method assumes a file named EventLog.log at the jar |
static void |
warn(java.lang.Object message)
Writes the given message as a category 'Warn' message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static org.apache.log4j.Logger logger
Constructor Detail |
---|
public LogManager()
Method Detail |
---|
public static void init()
public static void debug(java.lang.Object message)
message
- The message to be logged.public static void info(java.lang.Object message)
message
- The message to be logged.public static void warn(java.lang.Object message)
message
- The message to be logged.public static void error(java.lang.Object message)
message
- The message to be logged.public static void fatal(java.lang.Object message)
message
- The message to be logged.private static void pushNDC()
public static java.lang.String readLog()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |