Adding logError() methods.

This commit is contained in:
hns 2004-02-17 15:08:08 +00:00
parent 2185848e6c
commit e512386e9a

View file

@ -1316,6 +1316,28 @@ public final class Application implements IPathElement, Runnable {
////////////////////////////////////////////////////////////////////////
/**
* Log an application error
*/
public void logError(String msg, Throwable error) {
if (eventLog == null) {
eventLog = getLogger(eventLogName);
}
eventLog.error(msg, error);
}
/**
* Log an application error
*/
public void logError(String msg) {
if (eventLog == null) {
eventLog = getLogger(eventLogName);
}
eventLog.error(msg);
}
/**
* Log a generic application event
*/