Created
June 4, 2015 05:29
-
-
Save msbaek/adc3b9fc24ffba66829f to your computer and use it in GitHub Desktop.
logging using slf4j
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
| import org.junit.Test; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| public class LoggingTest { | |
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | |
| @Test | |
| public void foo() { | |
| logger.error("error for {} message for {}", 123, "hello"); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment