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

org.unlaxer.jaddress.dao.DomaLogger Maven / Gradle / Ivy

package org.unlaxer.jaddress.dao;

import org.seasar.doma.jdbc.Sql;
import org.seasar.doma.jdbc.UtilLoggingJdbcLogger;

import java.util.function.Supplier;
import java.util.logging.Level;

public class DomaLogger extends UtilLoggingJdbcLogger {
	public DomaLogger() {
		super(Level.FINE);
	}

	@Override
	protected void logSql(String callerClassName, String callerMethodName, Sql sql, Level level,
			Supplier messageSupplier) {
		if(level.intValue() >= Level.WARNING.intValue())
			super.logSql(callerClassName, callerMethodName, sql, level, messageSupplier);
	}

	@Override
	protected void log(Level level, String callerClassName, String callerMethodName, Throwable throwable,
			Supplier messageSupplier) {
		if(level.intValue() >= Level.WARNING.intValue())
			super.log(level, callerClassName, callerMethodName, throwable, messageSupplier);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy