3 import java.util.concurrent.TimeUnit;
5 import org.apache.logging.log4j.LogManager;
6 import org.apache.logging.log4j.Logger;
13 public static void main(String[] args) {
16 LOGGER.trace(
"Trace log message");
17 LOGGER.debug(
"Debug log message");
18 LOGGER.info(
"Info log message");
19 LOGGER.warn(
"Warn log message");
20 LOGGER.error(
"Error log message");
21 LOGGER.fatal(
"Fatal log message");
25 TimeUnit.SECONDS.sleep(1);
26 }
catch (InterruptedException e1) {
static void main(String[] args)
static final Logger LOGGER