Last active
April 4, 2021 09:31
-
-
Save mehmetcemyucel/5690c9b7443d1475fdcb75f87f6e7054 to your computer and use it in GitHub Desktop.
sb-slf4j-log4j2
This file contains hidden or 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
@Slf4j | |
@Controller | |
public class SpringBean { | |
// private static Logger log = LoggerFactory.getLogger(SpringBean.class); | |
@PostConstruct | |
public void log() { | |
log.debug("debug"); | |
log.info("info"); | |
log.error("error"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment