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) |
| void | auditFinished(AuditEvent aEvt) |
| void | auditStarted(AuditEvent aEvt) |
| protected void | closeStreams()
Flushes the output streams and closes them if needed. |
| void | fileFinished(AuditEvent aEvt) |
| void | fileStarted(AuditEvent aEvt) |
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 }