Methods Summary |
---|
public void | activateOptions(){@inheritDoc}
|
public void | error(java.lang.String message, java.lang.Exception e, int errorCode){@inheritDoc}
error(message, e, errorCode, null);
|
public void | error(java.lang.String message){@inheritDoc}
error(message, null, -1, null);
|
public void | error(java.lang.String message, java.lang.Exception e, int errorCode, org.apache.log4j.spi.LoggingEvent event){@inheritDoc}
errors.addElement(
new Object[] { message, e, new Integer(errorCode), event });
|
public org.apache.log4j.Appender | getAppender()Get appender.
return appender;
|
public org.apache.log4j.Appender | getBackupAppender()Get backup appender.
return backupAppender;
|
public int | getErrorCode(int index)Gets error code from specified error.
return ((Integer) ((Object[]) errors.elementAt(index))[2]).intValue();
|
public org.apache.log4j.spi.LoggingEvent | getEvent(int index)Gets logging event from specified error.
return (LoggingEvent) ((Object[]) errors.elementAt(index))[3];
|
public java.lang.Exception | getException(int index)Gets exception from specified error.
return (Exception) ((Object[]) errors.elementAt(index))[1];
|
public org.apache.log4j.Logger | getLogger()Gets last logger specified by setLogger.
return logger;
|
public java.lang.String | getMessage(int index)Gets message from specified error.
return (String) ((Object[]) errors.elementAt(index))[0];
|
public void | setAppender(org.apache.log4j.Appender appender){@inheritDoc}
this.appender = appender;
|
public void | setBackupAppender(org.apache.log4j.Appender appender){@inheritDoc}
this.backupAppender = appender;
|
public void | setLogger(org.apache.log4j.Logger logger){@inheritDoc}
this.logger = logger;
|
public int | size()Gets number of errors captured.
return errors.size();
|