|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Thread
com.jcorporate.expresso.core.registry.ExpressoThread
com.jcorporate.expresso.core.logging.LogHandler
The LogHandler is an asynchronous version of logging - it accepts requests to log, then logs them "eventually" in a separate thread
| Field Summary |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
LogHandler()
Deprecated. Constructor |
|
| Method Summary | |
void |
addToQueue(LogEntry le)
Deprecated. |
void |
finalize()
Deprecated. If for any reason the app exits, and gc is getting called we need to flush what we've got and then bail. |
static void |
flush()
Deprecated. |
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 uid 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,
String msg)
Deprecated. Log the given message at level 0 from the named object |
static void |
log(String dbName,
String channelName,
int newLevel,
String objectName,
String msg,
String color,
String uid,
String jobNumber)
Deprecated. Log a message with the uid and job number recorded as well |
static void |
log(String dbName,
String channelName,
int level,
String objectName,
Throwable e,
String color,
String uid,
String jobNumber)
Deprecated. Log an exception from a particular 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 uid,
String jobNumber)
Deprecated. Log a message at level 0 |
static void |
log(String dbName,
String objectName,
Throwable e)
Deprecated. Log an exception from a particular object |
static void |
log(String objectName,
Throwable e)
Deprecated. Log an exception from a particular object |
static void |
log(Throwable e)
Deprecated. Log an exception |
void |
run()
Deprecated. Main thread process of the LogHandler process |
static void |
setDaemonMode(boolean newValue)
Deprecated. Sets whether the thread, when started will behave in daemon mode or not. |
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 |
startUp()
Deprecated. |
static void |
staticAddToQueue(LogEntry le)
Deprecated. Takes a premade LogEntry and sends it to the logging queue. |
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 dbName,
String channelName,
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 dbName,
String channelName,
int newLevel,
String objectName,
String msg,
String color,
String newUid,
String newJobNumber)
Deprecated. Log a message at a given level with an objectname, message, and color. |
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 uid,
String jobNumber)
Deprecated. Try to log a message given the object, message, color uid and job number. |
| Methods inherited from class com.jcorporate.expresso.core.registry.ExpressoThread |
getThreadContext |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public LogHandler()
| Method Detail |
public void addToQueue(LogEntry le)
le - public static void staticAddToQueue(LogEntry le)
le - public void finalize()
public static void flush()
throws LogException
LogException
public static void log(int newLevel,
String msg)
newLevel - Log levelmsg - Message to log
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)
newLevel - Message level to logobjectName - Calling objectmsg - Message to logcolor - Color to log the message with
public static void log(int newLevel,
String objectName,
String msg,
String color,
String uid,
String jobNumber)
newLevel - Level of this messageobjectName - Calling objectmsg - Message to logcolor - Color to log the messageuid - User NamejobNumber - Job Number
public static void log(Throwable e)
throws LogException
e - Exception to log
LogException - If the log entry cannot be writtenpublic static void log(String msg)
msg - Message to log
public static void log(String objectName,
Throwable 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 dbName,
String channelName,
int level,
String objectName,
Throwable e,
String color,
String uid,
String jobNumber)
throws LogException
dbName - channelName - level - objectName - e - color - uid - jobNumber -
LogException
public static void log(String dbName,
String channelName,
int newLevel,
String objectName,
String msg,
String color,
String uid,
String jobNumber)
dbName - Database/config key name to usechannelName - of this logging "channel"newLevel - Level of this messageobjectName - Calling objectmsg - Message to logcolor - Color to log the messageuid - User NamejobNumber - Job Number
public static void log(String dbName,
String objectName,
Throwable e)
throws LogException
dbName - objectName - Calling objecte - Exception to log
LogException
public static void log(String objectName,
String msg,
String color)
objectName - Calling objectmsg - Message to logcolor - Color to log the message with
public static void log(String objectName,
String msg,
String color,
String uid,
String jobNumber)
objectName - Calling objectmsg - Message to logcolor - Color to log the messageuid - User IdjobNumber - Job Numberpublic void run()
public static void setMax(int newMax)
newMax - Max size of the new log in recordspublic static void setDaemonMode(boolean newValue)
public static void startUp()
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 dbName,
String channelName,
int newLevel,
String objectName,
String msg,
String color)
dbName - channelName - newLevel - objectName - msg - color -
public static void tryLog(String dbName,
String channelName,
int newLevel,
String objectName,
String msg,
String color,
String newUid,
String newJobNumber)
dbName - channelName - newLevel - objectName - msg - color - newUid - newJobNumber -
public static void tryLog(String objectName,
String msg,
String color)
objectName - msg - color -
public static void tryLog(String objectName,
String msg,
String color,
String uid,
String jobNumber)
objectName - msg - color - uid - jobNumber -
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||