标签:ref ack ace logger https alt deb ring oss
logger.trace()
logger.debug()
logger.info()
logger.warn()
logger.error()
SLF4J
和Logback
,引入其他框架的时候,需要把该框架依赖的日志框架排除;// 需要导入 slf4j.jar 和 logback.jar
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class HelloWorld {
public static void main(String[] args) {
Logger logger = LoggerFactory.getLogger(HelloWorld.class);
logger.info("Hello World");
}
}
参考资料:
标签:ref ack ace logger https alt deb ring oss
原文地址:https://www.cnblogs.com/linkworld/p/9136414.html