Log4j 2
  1. Log4j 2
  2. LOG4J2-294

Allow getLogger() calls with no logger name provided

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major 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 added a comment -

        Implemented in revision 1496554.

        Show
        Ralph Goers added a comment - Implemented in revision 1496554.
        Hide
        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
        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 added a comment -

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

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

        Javadoc update in revision 1496567.

        Show
        Ralph Goers added a comment - Javadoc update in revision 1496567.

          People

          • Assignee:
            Ralph Goers
            Reporter:
            Ralph Goers
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development