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

org.hisrc.jsonix.slf4j.LevelledLocationAwareLoggerWrapper Maven / Gradle / Ivy

There is a newer version: 2.3.9
Show newest version
package org.hisrc.jsonix.slf4j;

import org.slf4j.Marker;
import org.slf4j.spi.LocationAwareLogger;

public abstract class LevelledLocationAwareLoggerWrapper extends
		LevelledLoggerWrapper implements LocationAwareLogger {

	private LocationAwareLogger locationAwareDelegate;

	LevelledLocationAwareLoggerWrapper(LocationAwareLogger logger) {
		super(logger);
		this.locationAwareDelegate = logger;
	}

	@Override
	public void log(Marker marker, String fqcn, int level, String message,
			Object[] argArray, Throwable t) {
		if (this.getLevel() >= level) {
			this.locationAwareDelegate.log(marker, fqcn, level, message,
					argArray, t);
		}
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy