|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.puppycrawl.tools.checkstyle.api.AutomaticBean
com.puppycrawl.tools.checkstyle.DefaultLogger
Simple plain logger for text output. This is maybe not very suitable for a text output into a file since it does not need all 'audit finished' and so on stuff, but it looks good on stdout anyway. If there is really a problem this is what XMLLogger is for. It gives structure.
XMLLogger| Constructor Summary | |
DefaultLogger(java.io.OutputStream aOS,
boolean aCloseStreamsAfterUse)
Creates a new DefaultLogger instance. |
|
DefaultLogger(java.io.OutputStream aInfoStream,
boolean aCloseInfoAfterUse,
java.io.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,
java.lang.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. |
| Methods inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean |
configure, contextualize, finishLocalSetup, getConfiguration, setupChild |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultLogger(java.io.OutputStream aOS,
boolean aCloseStreamsAfterUse)
DefaultLogger instance.
aOS - where to log infos and errorsaCloseStreamsAfterUse - if aOS should be closed in auditFinished()
public DefaultLogger(java.io.OutputStream aInfoStream,
boolean aCloseInfoAfterUse,
java.io.OutputStream aErrorStream,
boolean aCloseErrorAfterUse)
DefaultLogger instance.
aInfoStream - the OutputStream for info messagesaCloseInfoAfterUse - auditFinished should close aInfoStreamaErrorStream - the OutputStream for error messagesaCloseErrorAfterUse - auditFinished should close aErrorStream| Method Detail |
public void addError(AuditEvent aEvt)
addError in interface AuditListeneraEvt - the event detailsAuditListener
public void addException(AuditEvent aEvt,
java.lang.Throwable aThrowable)
AuditListener
addException in interface AuditListeneraEvt - the event detailsaThrowable - details of the exceptionAuditListenerpublic void auditStarted(AuditEvent aEvt)
AuditListener
auditStarted in interface AuditListeneraEvt - the event detailsAuditListenerpublic void fileFinished(AuditEvent aEvt)
AuditListener
fileFinished in interface AuditListeneraEvt - the event detailsAuditListenerpublic void fileStarted(AuditEvent aEvt)
AuditListener
fileStarted in interface AuditListeneraEvt - the event detailsAuditListenerpublic void auditFinished(AuditEvent aEvt)
AuditListener
auditFinished in interface AuditListeneraEvt - the event detailsAuditListenerprotected void closeStreams()
|
Back to the Checkstyle Home Page | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||