org.jbatis.dds.solon.starter.property.MongoDBLogProperty Maven / Gradle / Ivy
package org.jbatis.dds.solon.starter.property;
import org.jbatis.dds.kernel.cache.global.OrderCache;
import org.jbatis.dds.kernel.cache.global.PropertyCache;
import org.jbatis.dds.kernel.interceptor.business.LogInterceptor;
/**
*
* 日志属性
**/
public class MongoDBLogProperty {
/**
* 是否开启日志
**/
private Boolean log = false;
/**
* 是否打开格式化sql
*/
private Boolean format = false;
/**
* 指定日志拦截器的order,默认为0
*/
private int logOrder = 0;
public int getLogOrder() {
return logOrder;
}
public void setLogOrder(int logOrder) {
OrderCache.LOG_ORDER = logOrder;
this.logOrder = logOrder;
}
public Boolean getLog() {
return this.log;
}
public Boolean getFormat() {
return this.format;
}
public void setLog(final Boolean log) {
this.log = log;
}
public void setFormat(final Boolean format) {
PropertyCache.format = format;
this.format = format;
}
public MongoDBLogProperty(final Boolean log, final Boolean format) {
this.log = log;
this.format = format;
}
public MongoDBLogProperty() {
}
}