wiki.xsx.jg.log.Logger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of JG-All Show documentation
Show all versions of JG-All Show documentation
a generator, from the database tables convert to the Java classes or from the Java classes convert to the database tables.
support mysql, oracle and sqlserver.
package wiki.xsx.jg.log;
/**
* 日志类
*/
public class Logger {
/**
* 打印信息
* @param content 信息
*/
public static void info(String content){
System.out.println("[INFO] " + content);
}
/**
* 打印错误
* @param content 错误信息
*/
public static void error(String content){
System.out.println("[ERROR] " + content);
}
/**
* 控制台换行
*/
public static void nextLine(){
System.out.println();
}
}