|
|||||||||
| Home >> All >> com >> jcorporate >> expresso >> core >> [ logging overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.jcorporate.expresso.core.logging
Class Log

java.lang.Objectcom.jcorporate.expresso.core.logging.Log
Deprecated. Since Expresso 4.0
- public class Log
- extends java.lang.Object
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!)
- Since:
- Expresso 1.0
| Field Summary | |
private static boolean |
consoleOutput
Deprecated. |
private static int |
maxLevel
Deprecated. |
private static javax.servlet.ServletContext |
myContext
Deprecated. |
private static com.jcorporate.expresso.core.db.DBConnectionPool |
myPool
Deprecated. |
private static java.lang.String |
thisClass
Deprecated. |
| Constructor Summary | |
Log()
Deprecated. Constructor |
|
| Method Summary | |
private static boolean |
checkLog()
Deprecated. Verify that the log is ready to log messages, return false if not able to be initialized |
static java.lang.String |
clear()
Deprecated. Delete all current database log entries |
private static java.lang.String |
encode(java.lang.String color)
Deprecated. Translate a color spelt out in english in to a one-char encoding |
static void |
log(java.lang.Exception e)
Deprecated. Log an exception |
static void |
log(int newLevel,
java.lang.String msg)
Deprecated. Log a new message at the given level, if we log at or above this level |
static void |
log(int newLevel,
java.lang.String objectName,
java.lang.String msg)
Deprecated. Log the given message at the given level, recording the originating object |
static void |
log(int newLevel,
java.lang.String objectName,
java.lang.String msg,
java.lang.String color)
Deprecated. Log a message from a particular object with a color at the given level |
static void |
log(int newLevel,
java.lang.String objectName,
java.lang.String msg,
java.lang.String color,
java.lang.String uid,
java.lang.String jobNumber)
Deprecated. Log a message with the username and job number recorded as well |
static void |
log(java.lang.String msg)
Deprecated. Log the given message at the level 0 (e.g. |
static void |
log(java.lang.String objectName,
java.lang.Exception e)
Deprecated. Log an exception from a particular object |
static void |
log(java.lang.String objectName,
java.lang.String msg)
Deprecated. Log the given message at level 0 from the named object |
static void |
log(java.lang.String objectName,
java.lang.String msg,
java.lang.String color)
Deprecated. Log the given message from an object at level 0 |
static void |
log(java.lang.String objectName,
java.lang.String msg,
java.lang.String color,
java.lang.String userName,
java.lang.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(javax.servlet.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,
java.lang.String objectName,
java.lang.String msg,
java.lang.String color)
Deprecated. Log a message at a given level with an objectname, message, and color. |
static void |
tryLog(java.lang.String objectName,
java.lang.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(java.lang.String objectName,
java.lang.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(java.lang.String objectName,
java.lang.String msg,
java.lang.String color)
Deprecated. Try to log a message at level 0 given the objectname, message, and color. |
static void |
tryLog(java.lang.String objectName,
java.lang.String msg,
java.lang.String color,
java.lang.String userName,
java.lang.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 |
| Field Detail |
myContext
private static javax.servlet.ServletContext myContext
- Deprecated.
thisClass
private static java.lang.String thisClass
- Deprecated.
consoleOutput
private static boolean consoleOutput
- Deprecated.
maxLevel
private static int maxLevel
- Deprecated.
myPool
private static com.jcorporate.expresso.core.db.DBConnectionPool myPool
- Deprecated.
| Constructor Detail |
Log
public Log()
- Deprecated.
- Constructor
- Constructor
| Method Detail |
checkLog
private static boolean checkLog()
throws LogException
- Deprecated.
- Verify that the log is ready to log messages, return false if not able to be initialized
- Verify that the log is ready to log messages, return false if not able to be initialized
clear
public static java.lang.String clear() throws java.io.IOException, com.jcorporate.expresso.core.db.DBException
- Deprecated.
- Delete all current database log entries
- Delete all current database log entries
encode
private static java.lang.String encode(java.lang.String color)
- Deprecated.
- Translate a color spelt out in english in to a one-char encoding
- Translate a color spelt out in english in to a one-char encoding
log
public static void log(int newLevel,
java.lang.String msg)
throws LogException
- Deprecated.
- Log a new message at the given level, if we log at or above this level
- Log a new message at the given level, if we log at or above this level
log
public static void log(int newLevel,
java.lang.String objectName,
java.lang.String msg)
throws LogException
- Deprecated.
- Log the given message at the given level, recording the originating object
- Log the given message at the given level, recording the originating object
log
public static void log(int newLevel,
java.lang.String objectName,
java.lang.String msg,
java.lang.String color)
throws LogException
- Deprecated.
- Log a message from a particular object with a color at the given level
- Log a message from a particular object with a color at the given level
log
public static void log(int newLevel,
java.lang.String objectName,
java.lang.String msg,
java.lang.String color,
java.lang.String uid,
java.lang.String jobNumber)
throws LogException
- Deprecated.
- Log a message with the username and job number recorded as well
- Log a message with the username and job number recorded as well
log
public static void log(java.lang.Exception e) throws LogException
- Deprecated.
- Log an exception
- Log an exception
log
public static void log(java.lang.String msg) throws LogException
- Deprecated.
- Log the given message at the level 0 (e.g. always log)
- Log the given message at the level 0 (e.g. always log)
log
public static void log(java.lang.String objectName, java.lang.Exception e) throws LogException
- Deprecated.
- Log an exception from a particular object
- Log an exception from a particular object
log
public static void log(java.lang.String objectName, java.lang.String msg) throws LogException
- Deprecated.
- Log the given message at level 0 from the named object
- Log the given message at level 0 from the named object
log
public static void log(java.lang.String objectName, java.lang.String msg, java.lang.String color) throws LogException
- Deprecated.
- Log the given message from an object at level 0
- Log the given message from an object at level 0
log
public static void log(java.lang.String objectName, java.lang.String msg, java.lang.String color, java.lang.String userName, java.lang.String jobNumber) throws LogException
- Deprecated.
- Log a message at level 0
- Log a message at level 0
setConsoleOutput
public static void setConsoleOutput(boolean newFlag)
- Deprecated.
- Turn on or off console output of the log
- Turn on or off console output of the log
setContext
public static void setContext(javax.servlet.ServletContext newContext) throws LogException
- Deprecated.
- Set the servlet context, so we have access to the servlet log
- Set the servlet context, so we have access to the servlet log
setMax
public 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
- Set the max size that a log is allowed to reach before it is auto-archived to the old directory
tryLog
public static void tryLog(int newLevel,
java.lang.String objectName,
java.lang.String msg,
java.lang.String color)
- Deprecated.
- Log a message at a given level with an objectname, message, and color. Does not throw exception if message cannot be logged
- Log a message at a given level with an objectname, message, and color. Does not throw exception if message cannot be logged
tryLog
public static void tryLog(java.lang.String objectName, java.lang.Exception e)
- Deprecated.
- Call to log that does not throw any exception, but writes to standard error if the message cannot be logged correctly
- Call to log that does not throw any exception, but writes to standard error if the message cannot be logged correctly
tryLog
public static void tryLog(java.lang.String objectName, java.lang.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
- Try to log the given message from the given object at level 0 but don't throw an exception if it doesn't work
tryLog
public static void tryLog(java.lang.String objectName, java.lang.String msg, java.lang.String color)
- Deprecated.
- Try to log a message at level 0 given the objectname, message, and color. No exception if unable to be logged.
- Try to log a message at level 0 given the objectname, message, and color. No exception if unable to be logged.
tryLog
public static void tryLog(java.lang.String objectName, java.lang.String msg, java.lang.String color, java.lang.String userName, java.lang.String jobNumber)
- Deprecated.
- Try to log a message given the object, message, color username and job number. No exception if message cannot be logged
- Try to log a message given the object, message, color username and job number. No exception if message cannot be logged
|
|||||||||
| Home >> All >> com >> jcorporate >> expresso >> core >> [ logging overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.jcorporate.expresso.core.logging.Log