Skip to content

Instantly share code, notes, and snippets.

@msbaek
Created June 4, 2015 05:29
Show Gist options
  • Select an option

  • Save msbaek/adc3b9fc24ffba66829f to your computer and use it in GitHub Desktop.

Select an option

Save msbaek/adc3b9fc24ffba66829f to your computer and use it in GitHub Desktop.
logging using slf4j
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