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

com.obatis.core.logger.LogPrinter Maven / Gradle / Ivy

There is a newer version: 3.0.1-release
Show newest version
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