All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.equinox.log.LogFilter Maven / Gradle / Ivy

Go to download

AspectJ tools most notably contains the AspectJ compiler (AJC). AJC applies aspects to Java classes during compilation, fully replacing Javac for plain Java classes and also compiling native AspectJ or annotation-based @AspectJ syntax. Furthermore, AJC can weave aspects into existing class files in a post-compile binary weaving step. This library is a superset of AspectJ weaver and hence also of AspectJ runtime.

There is a newer version: 1.9.22.1
Show newest version
/*******************************************************************************
 * Copyright (c) 2006, 2011 IBM Corporation and others
 *
 * This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License 2.0 which
 * accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 ******************************************************************************/
package org.eclipse.equinox.log;

import org.osgi.framework.Bundle;
import org.osgi.service.log.LogEntry;

/**
 * A LogFilter is used to pre-filter log requests before sending events to a LogListener.
 * @ThreadSafe
 * @see ExtendedLogReaderService#addLogListener(org.osgi.service.log.LogListener, LogFilter)
 * @since 3.7
 */
public interface LogFilter {

	/**
	 * @param bundle The logging bundle
	 * @param loggerName The name of the Logger
	 * @param logLevel The log level or severity
	 * @see LogEntry
	 * @see Logger
	 * @see ExtendedLogReaderService#addLogListener(org.osgi.service.log.LogListener, LogFilter)
	 */
	boolean isLoggable(Bundle bundle, String loggerName, int logLevel);
}