Created
March 31, 2024 11:41
-
-
Save lol97/9726358116a7e9776e296d1d177a04d4 to your computer and use it in GitHub Desktop.
test level log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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