org.incava.qualog

Class QlClassFilter


public class QlClassFilter
extends QlFilter

A filter for logging statements from a class. Unlike QlFilter, the class under consideration is checked that it is assignable from the filter class, that is, it is of the same class, or is a superclass.
See Also:
QlFilter

Field Summary

Fields inherited from class org.incava.qualog.QlFilter

NO_PATTERN, NO_RANGE

Constructor Summary

QlClassFilter(Class cls, QlLevel level)

Method Summary

boolean
isMatch(String fileName, int lineNumber, String className, String methodName)
Returns whether the given parameters should be enabled for logging.

Methods inherited from class org.incava.qualog.QlFilter

getLevel, isMatch

Constructor Details

QlClassFilter

public QlClassFilter(Class cls,
                     QlLevel level)

Method Details

isMatch

public boolean isMatch(String fileName,
                       int lineNumber,
                       String className,
                       String methodName)
Returns whether the given parameters should be enabled for logging. By default, this returns true.
Overrides:
isMatch in interface QlFilter