Skip to content

Instantly share code, notes, and snippets.

@lol97
Created March 31, 2024 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lol97/9726358116a7e9776e296d1d177a04d4 to your computer and use it in GitHub Desktop.
Save lol97/9726358116a7e9776e296d1d177a04d4 to your computer and use it in GitHub Desktop.
test level log
package com.sufyan97.learn_log4j;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
public class LevelLog {
private static Logger log = LogManager.getLogger(LevelLog.class);
public static void main(String[] args) {
log.trace("Hai ini trace");
log.debug("Hai ini info");
log.info("Hai ini info");
log.warn("Hai ini warning message");
log.error("Errrrrrrr");
log.fatal("fatalll");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment