APISonar


cn.hutool.log.Log.log

> cn > hutool > log > Log > log
cn APIs hutool APIs log APIs Log APIs log APIs

Example 1
private final static Log log = LogFactory.get();

	public void log(String sql, Object paramValues) {
		if (this.showSql) {
			if (null != paramValues && this.showParams) {
				log.log(this.level, "\n[SQL] -> {}\nParams -> {}", this.formatSql ? SqlFormatter.format(sql) : sql, paramValues);
			} else {
				log.log(this.level, "\n[SQL] -> {}", this.formatSql ? SqlFormatter.format(sql) : sql);
			}
		}
	}