Groovy Documentation

Package org.codenarc.rule.logging

 

Class Summary
LogUtil Utility methods for Logging rules
LoggerForDifferentClassAstVisitor
LoggerForDifferentClassRule Rule that checks for instantiating a logger for a class other than the current class.
LoggerWithWrongModifiersAstVisitor
LoggerWithWrongModifiersRule Logger objects should be declared private, static, and final.
LoggingSwallowsStacktraceAstVisitor
LoggingSwallowsStacktraceRule If you are logging an exception then the proper API is to call error(Object, Throwable), which will log the message and the exception stack trace.
MultipleLoggersAstVisitor
MultipleLoggersRule This rule catches classes that have more than one logger object defined.
PrintStackTraceAstVisitor
PrintStackTraceRule Rule that checks for calls to printStackTrace().
PrintlnAstVisitor
PrintlnRule Rule that checks for calls to this.print(), this.println() or this.printf().
SystemErrPrintAstVisitor
SystemErrPrintRule Rule that checks for calls to System.err.print(), System.err.println() or System.err.printf().
SystemOutPrintAstVisitor
SystemOutPrintRule Rule that checks for calls to System.out.print(), System.out.println() or System.out.printf().
 


Groovy Documentation