| Priority | P5 |
|---|---|
| Bug ID | 306 |
| Assignee | slf4j-dev@qos.ch |
| Summary | Add default logger method |
| Severity | enhancement |
| Classification | Unclassified |
| OS | Mac OS X 10.3 |
| Reporter | ggerard@gmail.com |
| Hardware | PC |
| Status | NEW |
| Version | 1.7.x |
| Component | slf4j-ext |
| Product | SLF4J |
This is a handy shortcut to get a logger for the containing class without
having to worry about classname when moving / refactoring a class or having
boilerplate classes that can be cloned.
public static XLogger getXLogger() {
return
getXLogger(Thread.currentThread().getStackTrace()[2].getClassName());
}