blob: 980a0d0c2ccfe6f8f62220067b33fbea3e86b0f1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.logserver.filter;
import com.yahoo.log.LogMessage;
/**
* This interface is analogous to the java.util.logging.Filter
* interface. Classes implementing this interface should be
* <b>stateless/immutable if possible so filters can be
* shared</b>.
*
* @author Bjorn Borud
*/
public interface LogFilter {
/**
* Determine if this log message is loggable.
*
* @param msg The log message
*/
public boolean isLoggable(LogMessage msg);
public String description();
}
|