private static final Log log = LogFactory.getLog(DataSourceManager.class); 它的作用?
问题描述:
private static final Log log = LogFactory.getLog(DataSourceManager.class); 它的作用?
答
private static final Log log 是定义一个Log型的常量
LogFactory.getLog(DataSourceManager.class);这个方法会返回一个Log型的对象