摘要:
1、获得Logger实例import org.apache.logging.log4j.Logger;Logger logger=LogManager.getLogger( “logger的名字” );Logger logger=LogManager.getLogger(HelloWorld.class); (1)The LogManager will locate the appropriate LoggerContext and then obtain the Logger from it. (2)The logger simply has a name and is associated 阅读全文