public class DefaultLogger extends AutomaticBean implements AuditListener
XMLLogger| Constructor and Description |
|---|
DefaultLogger(OutputStream aOS,
boolean aCloseStreamsAfterUse)
Creates a new
DefaultLogger instance. |
DefaultLogger(OutputStream aInfoStream,
boolean aCloseInfoAfterUse,
OutputStream aErrorStream,
boolean aCloseErrorAfterUse)
Creates a new
DefaultLogger instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
addError(AuditEvent aEvt)
Print an Emacs compliant line on the error stream.
|
void |
addException(AuditEvent aEvt,
Throwable aThrowable)
Notify that an exception happened while performing audit.
|
void |
auditFinished(AuditEvent aEvt)
Notify that the audit is finished.
|
void |
auditStarted(AuditEvent aEvt)
Notify that the audit is about to start.
|
protected void |
closeStreams()
Flushes the output streams and closes them if needed.
|
void |
fileFinished(AuditEvent aEvt)
Notify that audit is finished on a specific file.
|
void |
fileStarted(AuditEvent aEvt)
Notify that audit is about to start on a specific file.
|
configure, contextualize, finishLocalSetup, getConfiguration, setupChildpublic DefaultLogger(OutputStream aOS, boolean aCloseStreamsAfterUse)
DefaultLogger instance.aOS - where to log infos and errorsaCloseStreamsAfterUse - if aOS should be closed in auditFinished()public DefaultLogger(OutputStream aInfoStream, boolean aCloseInfoAfterUse, OutputStream aErrorStream, boolean aCloseErrorAfterUse)
DefaultLogger instance.aInfoStream - the OutputStream for info messagesaCloseInfoAfterUse - auditFinished should close aInfoStreamaErrorStream - the OutputStream for error messagesaCloseErrorAfterUse - auditFinished should close aErrorStreampublic void addError(AuditEvent aEvt)
addError in interface AuditListeneraEvt - the event detailsAuditListenerpublic void addException(AuditEvent aEvt, Throwable aThrowable)
addException in interface AuditListeneraEvt - the event detailsaThrowable - details of the exceptionpublic void auditStarted(AuditEvent aEvt)
auditStarted in interface AuditListeneraEvt - the event detailspublic void fileFinished(AuditEvent aEvt)
fileFinished in interface AuditListeneraEvt - the event detailspublic void fileStarted(AuditEvent aEvt)
fileStarted in interface AuditListeneraEvt - the event detailspublic void auditFinished(AuditEvent aEvt)
auditFinished in interface AuditListeneraEvt - the event detailsprotected void closeStreams()
Copyright © 2001-2014. All Rights Reserved.