logging
Class LoggerProxy
java.lang.Object
logging.LoggerProxy
- public class LoggerProxy
- extends java.lang.Object
|
Method Summary |
static Logger |
createLogger(java.lang.String classname,
java.lang.String param)
Dynamically creates a logger object. |
static void |
log(java.lang.String user,
java.lang.String app,
java.lang.String originator,
java.lang.String event1,
java.lang.String event2,
java.lang.String state1,
java.lang.String state2)
Sends log information to the logging database. |
static void |
log(java.lang.String message,
java.lang.Throwable t)
|
static void |
log(java.lang.Throwable t)
|
static void |
setLogger(Logger l)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static Logger logger
LoggerProxy
public LoggerProxy()
setLogger
public static void setLogger(Logger l)
log
public static void log(java.lang.Throwable t)
log
public static void log(java.lang.String message,
java.lang.Throwable t)
log
public static void log(java.lang.String user,
java.lang.String app,
java.lang.String originator,
java.lang.String event1,
java.lang.String event2,
java.lang.String state1,
java.lang.String state2)
- Sends log information to the logging database.
The nature of the "database" is dependent on the current logger.
- Parameters:
user - the user's assigned idapp - the application that generated the messageevent1 - the primary event description.
this is usually the event classname.event2 - the secondary event description.
This is usually an event id number or command string.originator - the classname of the code that originataed the event.state1 - the primary description of the current application state.state2 - the secondary description of the current application state.
createLogger
public static Logger createLogger(java.lang.String classname,
java.lang.String param)
- Dynamically creates a logger object.
This method assumes that the logger has either a
no argument constructor, or a constructor that takes a single
string argument. If param is null or the empty string, preference
is given to the no argument constructor, if present. If param
contains character data, preference is given to the string
constructor, if present.
- Returns:
- the constructor or null if the class could not be initialized
for any reason.
© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.