|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.twelveParsecs.util.Logger
public class Logger
Implements a simple logging system. Two logging methods are provided, logErr and logMsg. The only difference is in the way the messages are displayed in the log file. This is intentionally a no-frills logging system.
| Field Summary | |
|---|---|
private static java.lang.String |
LOG
Deprecated. Used in an older version of the class in logErr & logMsg methods as a hard-coded path to the log file. |
| Constructor Summary | |
|---|---|
private |
Logger()
Privately overridden constructor. |
| Method Summary | |
|---|---|
static void |
logErr(java.lang.String className,
java.lang.String methodName,
java.lang.String msg)
Deprecated. Use the logErr method that allows path to log file as an argument. This old version used a hard-coded log file path. |
static void |
logErr(java.lang.String logFile,
java.lang.String className,
java.lang.String methodName,
java.lang.String msg)
Logs an error message to the log file. |
static void |
logMsg(java.lang.String className,
java.lang.String methodName,
java.lang.String msg)
Deprecated. Use the logMsg method that allows path to log file as an argument. This old version used a hard-coded log file path. |
static void |
logMsg(java.lang.String logFile,
java.lang.String className,
java.lang.String methodName,
java.lang.String msg)
Logs an informational message to the log file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.lang.String LOG
| Constructor Detail |
|---|
private Logger()
| Method Detail |
|---|
public static void logErr(java.lang.String className,
java.lang.String methodName,
java.lang.String msg)
className - The name of the class this error is coming frommethodName - The name of the method this error is coming frommsg - The error message to log
public static void logMsg(java.lang.String className,
java.lang.String methodName,
java.lang.String msg)
className - The name of the class this error is coming frommethodName - The name of the method this error is coming frommsg - The informational message to log
public static void logErr(java.lang.String logFile,
java.lang.String className,
java.lang.String methodName,
java.lang.String msg)
logFile - The full path to where the log file should be written or appended.className - The name of the class this error is coming frommethodName - The name of the method this error is coming frommsg - The error message to log
public static void logMsg(java.lang.String logFile,
java.lang.String className,
java.lang.String methodName,
java.lang.String msg)
logFile - The full path to where the log file should be written or appended.className - The name of the class this error is coming frommethodName - The name of the method this error is coming frommsg - The informational message to log
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||