[slf4j-dev] [Bug 306] New: Add default logger method

bugzilla-daemon at qos.ch bugzilla-daemon at qos.ch
Thu Jul 11 20:49:24 CEST 2013


http://bugzilla.slf4j.org/show_bug.cgi?id=306

          Priority: P5
            Bug ID: 306
          Assignee: slf4j-dev at qos.ch
           Summary: Add default logger method
          Severity: enhancement
    Classification: Unclassified
                OS: Mac OS X 10.3
          Reporter: ggerard at 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());
  }

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/slf4j-dev/attachments/20130711/fc1471cf/attachment.html>


More information about the slf4j-dev mailing list