代码中日志的使用

一,slf4j

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

private static Logger logger = LoggerFactory.getLogger(ScpUtil.class);

二,log4j

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

private static Logger logger = LogManager.getLogger(ScpUtil.class);

 

posted @ 2018-05-31 09:28  無玑小姐  阅读(359)  评论(0编辑  收藏  举报