org.unlaxer.jaddress.dao.DomaLogger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of japanese-address-parser-impl Show documentation
Show all versions of japanese-address-parser-impl Show documentation
a simplejapanese address parser
The newest version!
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