boolean (final String type) { if (type.equals(ERROR)) { return !FILTER_ERRORS; } if (type.equals(WARNING)) { return !FILTER_WARNINGS; } if (type.equals(INFO)) { return !FILTER_INFO; } if (type.equals(DEBUG)) { return !FILTER_DEBUG; } return true; }