Created
October 6, 2019 14:44
-
-
Save alex-ber/aa770ce56a7dee13d7dd403833bdc9f4 to your computer and use it in GitHub Desktop.
Alternative log gefintion
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.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
public class SomeClass { | |
private static final class Local {}; | |
private static final Logger log = LoggerFactory.getLogger(Local.class.getEnclosingClass()); | |
public void foo(){ | |
log.debug("foo()"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment