Portable Logger Names with Java 7 Method Handles | JavaWorld
The MethodHandes.lookup() method returns an instance of MethodHandles.Lookup, from which the lookupClass() method can be invoked. This latter method's return value can be used directly in naming the Log4j logger or can have that returned Class's getCanonicalName() method return its name as a String
for naming the java.util.logging logger.
Read full article from Portable Logger Names with Java 7 Method Handles | JavaWorld
No comments:
Post a Comment