| java.lang.Object com.puppycrawl.tools.checkstyle.api.AutomaticBean com.puppycrawl.tools.checkstyle.DefaultLogger
DefaultLogger | public class DefaultLogger extends AutomaticBean implements AuditListener(Code) | | 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.
author: Stephane Bailliez See Also: XMLLogger |
DefaultLogger | public DefaultLogger(OutputStream aOS, boolean aCloseStreamsAfterUse)(Code) | | Creates a new DefaultLogger instance.
Parameters: aOS - where to log infos and errors Parameters: aCloseStreamsAfterUse - if aOS should be closed in auditFinished() |
DefaultLogger | public DefaultLogger(OutputStream aInfoStream, boolean aCloseInfoAfterUse, OutputStream aErrorStream, boolean aCloseErrorAfterUse)(Code) | | Creates a new DefaultLogger instance.
Parameters: aInfoStream - the OutputStream for info messages Parameters: aCloseInfoAfterUse - auditFinished should close aInfoStream Parameters: aErrorStream - the OutputStream for error messages Parameters: aCloseErrorAfterUse - auditFinished should close aErrorStream |
addError | public void addError(AuditEvent aEvt)(Code) | | Print an Emacs compliant line on the error stream.
If the column number is non zero, then also display it.
Parameters: aEvt - See Also: AuditListener |
closeStreams | protected void closeStreams()(Code) | | Flushes the output streams and closes them if needed.
|
|
|