public class XMLLogger extends AutomaticBean implements AuditListener
Constructor and Description |
---|
XMLLogger(OutputStream aOS,
boolean aCloseStream)
Creates a new
XMLLogger instance. |
Modifier and Type | Method and Description |
---|---|
void |
addError(AuditEvent aEvt)
Notify that an audit error was discovered on a specific file.
|
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.
|
String |
encode(String aValue)
Escape <, > & ' and " as their entities.
|
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.
|
boolean |
isReference(String aEnt) |
configure, contextualize, finishLocalSetup, getConfiguration, setupChild
public XMLLogger(OutputStream aOS, boolean aCloseStream)
XMLLogger
instance.
Sets the output to a defined stream.aOS
- the stream to write logs to.aCloseStream
- close aOS in auditFinishedpublic void auditStarted(AuditEvent aEvt)
auditStarted
in interface AuditListener
aEvt
- the event detailspublic void auditFinished(AuditEvent aEvt)
auditFinished
in interface AuditListener
aEvt
- the event detailspublic void fileStarted(AuditEvent aEvt)
fileStarted
in interface AuditListener
aEvt
- the event detailspublic void fileFinished(AuditEvent aEvt)
fileFinished
in interface AuditListener
aEvt
- the event detailspublic void addError(AuditEvent aEvt)
addError
in interface AuditListener
aEvt
- the event detailspublic void addException(AuditEvent aEvt, Throwable aThrowable)
addException
in interface AuditListener
aEvt
- the event detailsaThrowable
- details of the exceptionpublic String encode(String aValue)
aValue
- the value to escape.public boolean isReference(String aEnt)
aEnt
- the possible entity to look for.