com.puppycrawl.tools.checkstyle
public class DefaultLogger extends AutomaticBean implements AuditListener
See Also: XMLLogger
Constructor Summary | |
---|---|
DefaultLogger(OutputStream aOS, boolean aCloseStreamsAfterUse)
Creates a new DefaultLogger instance. | |
DefaultLogger(OutputStream aInfoStream, boolean aCloseInfoAfterUse, OutputStream aErrorStream, boolean aCloseErrorAfterUse)
Creates a new DefaultLogger instance.
|
Method Summary | |
---|---|
void | addError(AuditEvent aEvt)
Print an Emacs compliant line on the error stream.
|
void | addException(AuditEvent aEvt, Throwable aThrowable) {@inheritDoc} |
void | auditFinished(AuditEvent aEvt) {@inheritDoc} |
void | auditStarted(AuditEvent aEvt) {@inheritDoc} |
protected void | closeStreams()
Flushes the output streams and closes them if needed. |
void | fileFinished(AuditEvent aEvt) {@inheritDoc} |
void | fileStarted(AuditEvent aEvt) {@inheritDoc} |
DefaultLogger
instance.Parameters: aOS where to log infos and errors aCloseStreamsAfterUse if aOS should be closed in auditFinished()
DefaultLogger
instance.
Parameters: aInfoStream the OutputStream
for info messages aCloseInfoAfterUse auditFinished should close aInfoStream aErrorStream the OutputStream
for error messages aCloseErrorAfterUse auditFinished should close aErrorStream
Parameters: aEvt {@inheritDoc}