Uploaded image for project: 'SLF4J'
  1. SLF4J
  2. SLF4J-297

Add default logger method

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • None
    • 1.7.x
    • slf4j-ext
    • None
    • Operating System: Mac OS X 10.3
      Platform: PC

    Description

      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()); }

      Attachments

        Activity

          People

            ggerard@gmail.com ggerard
            ggerard@gmail.com ggerard
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: