|
Expresso 5-5-0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.core.logging.Log
Log is a generic logging facility that determines what logging mechanisms are available to it & logs a message to those mechanisms. The potential mechanisms are: An Database log, viewable as a web page A servlet log, location dependant on servlet engine Standard output (if all else fails!)
| Constructor Summary | |
Log()
Deprecated. Constructor |
|
| Method Summary | |
static String |
clear()
Deprecated. Delete all current database log entries |
static void |
log(Exception e)
Deprecated. Log an exception |
static void |
log(int newLevel,
String msg)
Deprecated. Log a new message at the given level, if we log at or above this level |
static void |
log(int newLevel,
String objectName,
String msg)
Deprecated. Log the given message at the given level, recording the originating object |
static void |
log(int newLevel,
String objectName,
String msg,
String color)
Deprecated. Log a message from a particular object with a color at the given level |
static void |
log(int newLevel,
String objectName,
String msg,
String color,
String uid,
String jobNumber)
Deprecated. Log a message with the username and job number recorded as well |
static void |
log(String msg)
Deprecated. Log the given message at the level 0 (e.g. always log) |
static void |
log(String objectName,
Exception e)
Deprecated. Log an exception from a particular object |
static void |
log(String objectName,
String msg)
Deprecated. Log the given message at level 0 from the named object |
static void |
log(String objectName,
String msg,
String color)
Deprecated. Log the given message from an object at level 0 |
static void |
log(String objectName,
String msg,
String color,
String userName,
String jobNumber)
Deprecated. Log a message at level 0 |
static void |
setConsoleOutput(boolean newFlag)
Deprecated. Turn on or off console output of the log |
static void |
setContext(ServletContext newContext)
Deprecated. Set the servlet context, so we have access to the servlet log |
static void |
setMax(int newMax)
Deprecated. Set the max size that a log is allowed to reach before it is auto-archived to the old directory |
static void |
tryLog(int newLevel,
String objectName,
String msg,
String color)
Deprecated. Log a message at a given level with an objectname, message, and color. |
static void |
tryLog(String objectName,
Exception e)
Deprecated. Call to log that does not throw any exception, but writes to standard error if the message cannot be logged correctly |
static void |
tryLog(String objectName,
String msg)
Deprecated. Try to log the given message from the given object at level 0 but don't throw an exception if it doesn't work |
static void |
tryLog(String objectName,
String msg,
String color)
Deprecated. Try to log a message at level 0 given the objectname, message, and color. |
static void |
tryLog(String objectName,
String msg,
String color,
String userName,
String jobNumber)
Deprecated. Try to log a message given the object, message, color username and job number. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Log()
| Method Detail |
public static String clear()
throws IOException,
DBException
IOException - If the file cannot be copied
DBException - If the setup info cannot be read
public static void log(int newLevel,
String msg)
throws LogException
newLevel - Log levelmsg - Message to log
LogException
public static void log(int newLevel,
String objectName,
String msg)
throws LogException
newLevel - Logging level of this messageobjectName - Calling objectmsg - Message to log
LogException
public static void log(int newLevel,
String objectName,
String msg,
String color)
throws LogException
newLevel - Message level to logobjectName - Calling objectmsg - Message to logcolor - Color to log the message with
LogException - if the message cannot be logged
public static void log(int newLevel,
String objectName,
String msg,
String color,
String uid,
String jobNumber)
throws LogException
newLevel - Level of this messageobjectName - Calling objectmsg - Message to logcolor - Color to log the messageuid - User IDjobNumber - Job Number
LogException
public static void log(Exception e)
throws LogException
e - Exception to log
LogException - If the log entry cannot be written
public static void log(String msg)
throws LogException
msg - Message to log
LogException
public static void log(String objectName,
Exception e)
throws LogException
objectName - Calling objecte - Exception to log
LogException
public static void log(String objectName,
String msg)
throws LogException
objectName - Calling objectmsg - Message to log
LogException - if the message cannot be logged
public static void log(String objectName,
String msg,
String color)
throws LogException
objectName - Calling objectmsg - Message to logcolor - Color to log the message with
LogException - if the message cannot be logged
public static void log(String objectName,
String msg,
String color,
String userName,
String jobNumber)
throws LogException
objectName - Calling objectmsg - Message to logcolor - Color to log the messageuserName - User NamejobNumber - Job Number
LogExceptionpublic static void setConsoleOutput(boolean newFlag)
newFlag - True if log messages are echoed to the console as
well as other logs, else false
public static void setContext(ServletContext newContext)
throws LogException
newContext - The servlet context to be used to log
LogExceptionpublic static void setMax(int newMax)
newMax - Max size of the new log in records
public static void tryLog(int newLevel,
String objectName,
String msg,
String color)
newLevel - objectName - msg - color -
public static void tryLog(String objectName,
Exception e)
objectName - Name of the object logging the messagee - Exception being logged
public static void tryLog(String objectName,
String msg)
objectName - msg -
public static void tryLog(String objectName,
String msg,
String color)
objectName - msg - color -
public static void tryLog(String objectName,
String msg,
String color,
String userName,
String jobNumber)
objectName - msg - color - userName - jobNumber -
|
Expresso 5-5-0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||