com.obatis.core.logger.LogPrinter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of obatis-web Show documentation
Show all versions of obatis-web Show documentation
obatis-web, apply web project
package com.obatis.core.logger;
import com.obatis.core.annotation.validator.IsRange;
import org.springframework.beans.factory.annotation.Value;
public class LogPrinter {
@Value("${system.logdebug}")
private Boolean debug;
private String classCalName;
public LogPrinter(String canonicalName) {
this.classCalName = canonicalName;
}
public void print(Object object) {
if (null==debug || debug) {
System.out.print("[" + this.classCalName + "]" + object);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy