Example usage for java.util.logging Filter interface-usage

List of usage examples for java.util.logging Filter interface-usage

Introduction

In this page you can find the example usage for java.util.logging Filter interface-usage.

Usage

From source file Person.java

class AgeFilter implements Filter {
    public boolean isLoggable(LogRecord record) {
        boolean result = false;
        Object[] objs = record.getParameters();
        Person person = (Person) objs[0];
        if (person != null) {

From source file io.stallion.services.LogFilter.java

public class LogFilter implements Filter {
    private Map<String, Level> packageLogLevelMap = new HashMap<>();
    private Level defaultLevel = Level.INFO;

    public LogFilter(Level defaultLevel, Map<String, String> packageLogLevelMap) {
        for (Map.Entry<String, String> entry : packageLogLevelMap.entrySet()) {

From source file alma.acs.logging.adapters.JacORBFilter.java

/**
 * Filters out JacORB log messages that we don't want to see.
 * Also corrects the log level of a few known messages when it seems inappropriate (and blanks non-printable chars in the message);
 * this is a bit dirty because the JDK logging filters are not expected to modify the log records,
 * but it saves us from re-examining the same log record in a subsequent home-brew modifier stage.
 * <p>

From source file hudson.plugins.clearcase.history.FieldFilter.java

/**
 * @author hlyh
 */
public abstract class FieldFilter implements Filter {
    private static final Logger LOGGER = Logger.getLogger(FieldFilter.class.getName());