Search in sources :

Example 11 with Filter

use of java.util.logging.Filter in project ACS by ACS-Community.

the class LogManagerGui method effectiveLevel.

// yields the logger's level, considering inheritance and force-filters
Level effectiveLevel(Logger x) {
    Level ret = activeLevel(x);
    Filter f = x.getFilter();
    if (f != null && f instanceof ForceFilter) {
        ForceFilter ff = (ForceFilter) f;
        if (ff.level.intValue() > ret.intValue())
            ret = ff.level;
    }
    return ret;
}
Also used : Filter(java.util.logging.Filter) Level(java.util.logging.Level)

Example 12 with Filter

use of java.util.logging.Filter in project tomee by apache.

the class AbstractDelegatingLogger method internalLog.

protected void internalLog(final LogRecord record) {
    final Filter filter = getFilter();
    if (filter != null && !filter.isLoggable(record)) {
        return;
    }
    final String msg = formatMessage(record);
    internalLogFormatted(msg, record);
}
Also used : Filter(java.util.logging.Filter)

Aggregations

Filter (java.util.logging.Filter)12 Formatter (java.util.logging.Formatter)4 LogRecord (java.util.logging.LogRecord)4 Logger (java.util.logging.Logger)4 File (java.io.File)2 IOException (java.io.IOException)2 Level (java.util.logging.Level)2 SimpleFormatter (java.util.logging.SimpleFormatter)2 JacORBFilter (alma.acs.logging.adapters.JacORBFilter)1 UnnamedLogger (alma.maci.loggingconfig.UnnamedLogger)1 SSOException (com.iplanet.sso.SSOException)1 ServerTlsHandler (io.grpc.netty.ProtocolNegotiators.ServerTlsHandler)1 ChannelHandler (io.netty.channel.ChannelHandler)1 SupportedCipherSuiteFilter (io.netty.handler.ssl.SupportedCipherSuiteFilter)1 FilenameFilter (java.io.FilenameFilter)1 UnsupportedEncodingException (java.io.UnsupportedEncodingException)1 Constructor (java.lang.reflect.Constructor)1 MissingResourceException (java.util.MissingResourceException)1 ConsoleHandler (java.util.logging.ConsoleHandler)1 ErrorManager (java.util.logging.ErrorManager)1