com.puppycrawl.tools.checkstyle.DefaultLogger Java Examples
The following examples show how to use
com.puppycrawl.tools.checkstyle.DefaultLogger.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AssertionsAuditListener.java From nohttp with Apache License 2.0 | 5 votes |
@Override public void auditFinished(AuditEvent event) { recordLevel(event); recordLocalizedMessage(DefaultLogger.AUDIT_FINISHED_MESSAGE); recordMessage(this.severityCounts.toString()); int errors = this.severityCounts.getOrDefault(SeverityLevel.ERROR, 0); recordMessage(errors + (errors == 1 ? " error" : " errors")); System.out.println(this.filenames); System.out.println(this.message); this.checks.forEach(this::runCheck); }
Example #2
Source File: AssertionsAuditListener.java From spring-javaformat with Apache License 2.0 | 5 votes |
@Override public void auditFinished(AuditEvent event) { recordLevel(event); recordLocalizedMessage(DefaultLogger.AUDIT_FINISHED_MESSAGE); recordMessage(this.severityCounts.toString()); int errors = this.severityCounts.getOrDefault(SeverityLevel.ERROR, 0); recordMessage(errors + (errors == 1 ? " error" : " errors")); System.out.println(this.filenames); System.out.println(this.message); this.checks.forEach(this::runCheck); }
Example #3
Source File: MailLogger.java From cacheonix-core with GNU Lesser General Public License v2.1 | 5 votes |
/** * Constructs a <code>MailLogger</code> */ public MailLogger() { mOutputStream = new ByteArrayOutputStream(); mLogger = new DefaultLogger(mOutputStream, false); mErrors = 0; }
Example #4
Source File: MailLogger.java From contribution with GNU Lesser General Public License v2.1 | 5 votes |
/** * Constructs a <code>MailLogger</code> */ public MailLogger() { mOutputStream = new ByteArrayOutputStream(); mLogger = new DefaultLogger(mOutputStream, false); mErrors = 0; }
Example #5
Source File: AssertionsAuditListener.java From nohttp with Apache License 2.0 | 4 votes |
@Override public void auditStarted(AuditEvent event) { recordLevel(event); recordLocalizedMessage(DefaultLogger.AUDIT_STARTED_MESSAGE); recordLevel(event); }
Example #6
Source File: AssertionsAuditListener.java From nohttp with Apache License 2.0 | 4 votes |
@Override public void addException(AuditEvent event, Throwable throwable) { recordLevel(event); recordLocalizedMessage(DefaultLogger.ADD_EXCEPTION_MESSAGE, event.getFileName()); }
Example #7
Source File: AssertionsAuditListener.java From spring-javaformat with Apache License 2.0 | 4 votes |
@Override public void auditStarted(AuditEvent event) { recordLevel(event); recordLocalizedMessage(DefaultLogger.AUDIT_STARTED_MESSAGE); recordLevel(event); }
Example #8
Source File: AssertionsAuditListener.java From spring-javaformat with Apache License 2.0 | 4 votes |
@Override public void addException(AuditEvent event, Throwable throwable) { recordLevel(event); recordLocalizedMessage(DefaultLogger.ADD_EXCEPTION_MESSAGE, event.getFileName()); }