public class XMLLogger extends AutomaticBean implements AuditListener
Constructor and Description |
---|
XMLLogger(OutputStream os,
boolean closeStream)
Creates a new
XMLLogger instance. |
Modifier and Type | Method and Description |
---|---|
void |
addError(AuditEvent evt)
Notify that an audit error was discovered on a specific file.
|
void |
addException(AuditEvent evt,
Throwable throwable)
Notify that an exception happened while performing audit.
|
void |
auditFinished(AuditEvent evt)
Notify that the audit is finished.
|
void |
auditStarted(AuditEvent evt)
Notify that the audit is about to start.
|
String |
encode(String value)
Escape <, > & ' and " as their entities.
|
void |
fileFinished(AuditEvent evt)
Notify that audit is finished on a specific file.
|
void |
fileStarted(AuditEvent evt)
Notify that audit is about to start on a specific file.
|
boolean |
isReference(String ent) |
configure, contextualize, finishLocalSetup, getConfiguration, setupChild
public XMLLogger(OutputStream os, boolean closeStream)
XMLLogger
instance.
Sets the output to a defined stream.os
- the stream to write logs to.closeStream
- close oS in auditFinishedpublic void auditStarted(AuditEvent evt)
auditStarted
in interface AuditListener
evt
- the event detailspublic void auditFinished(AuditEvent evt)
auditFinished
in interface AuditListener
evt
- the event detailspublic void fileStarted(AuditEvent evt)
fileStarted
in interface AuditListener
evt
- the event detailspublic void fileFinished(AuditEvent evt)
fileFinished
in interface AuditListener
evt
- the event detailspublic void addError(AuditEvent evt)
addError
in interface AuditListener
evt
- the event detailspublic void addException(AuditEvent evt, Throwable throwable)
addException
in interface AuditListener
evt
- the event detailsthrowable
- details of the exceptionpublic String encode(String value)
value
- the value to escape.public boolean isReference(String ent)
ent
- the possible entity to look for.Copyright © 2001–2015. All rights reserved.