public static boolean isLoggable(String tag, int level) {
        if (! activated && level != Constants.ASSERT) {
            return false;
        }
        Integer logLevel = getLogLevel(tag);
        if (logLevel == null) {
            logLevel = defaultLogLevel;
        }
        return level >= logLevel;
    }
public static boolean isLoggable ( String tag , int level ) { if ( ! activated && level != Constants . ASSERT ) { return false ; } Integer logLevel = getLogLevel ( tag ) ; if ( logLevel == null ) { logLevel = defaultLogLevel ; } return level >= logLevel ; }
Checks to see whether or not a log for the specified tag is loggable at
the specified level.

The default level of any tag is set as specified in
{@link #setDefaultLogLevel(int)}. This means that any level above and
including that level will be logged.

Use {@link #configure(Properties)} to define different log levels for
each tag.

@param tag
The tag to check.
@param level
The level to check.
@return Whether or not that this is allowed to be logged.