📅  最后修改于: 2022-03-11 14:57:23.385000             🧑  作者: Mango
System.setProperty("log4j.configurationFile","./path_to_the_log4j2_config_file/log4j2.xml");
Logger log = LogManager.getLogger(LogExample.class.getName());