Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-294

Allow getLogger() calls with no logger name provided

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta7
    • Fix Version/s: 2.0-beta8
    • Component/s: API
    • Labels:
      None

      Description

      Callers to getLogger are required to pass in a Logger name. Most of the time this name will be the name of the class the getLogger call is in. It would be nice to make this the default so that users can just call LogManager.getLogger().

        Activity

        Hide
        ralph.goers@dslextreme.com Ralph Goers added a comment -

        Implemented in revision 1496554.

        Show
        ralph.goers@dslextreme.com Ralph Goers added a comment - Implemented in revision 1496554.
        Hide
        garydgregory Gary Gregory added a comment -

        The Javadoc is missing on the new API: org.apache.logging.log4j.LogManager.getLogger()

        The Javadoc for the methods that call the new private method getClassName(int) should also reflect the new dynamic stack trace based behavior when the input is null.

        Show
        garydgregory Gary Gregory added a comment - The Javadoc is missing on the new API: org.apache.logging.log4j.LogManager.getLogger() The Javadoc for the methods that call the new private method getClassName(int) should also reflect the new dynamic stack trace based behavior when the input is null.
        Hide
        ralph.goers@dslextreme.com Ralph Goers added a comment -

        Yup. I knew they were missing and just forgot to do it before I committed it.

        Show
        ralph.goers@dslextreme.com Ralph Goers added a comment - Yup. I knew they were missing and just forgot to do it before I committed it.
        Hide
        ralph.goers@dslextreme.com Ralph Goers added a comment -

        Javadoc update in revision 1496567.

        Show
        ralph.goers@dslextreme.com Ralph Goers added a comment - Javadoc update in revision 1496567.

          People

          • Assignee:
            ralph.goers@dslextreme.com Ralph Goers
            Reporter:
            ralph.goers@dslextreme.com Ralph Goers
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development