Created
December 18, 2016 00:03
-
-
Save bryder/1445cbad12c630fefa294224a331bb58 to your computer and use it in GitHub Desktop.
Get a logger for the current class name automatically
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
private static final org.slf4j.Logger logger = | |
org.slf4j.LoggerFactory.getLogger(MethodHandles.lookup().lookupClass()); | |
// When called in a lambda the logger name changed to java.lang.introspection.MethodHandles$lookup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment