Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6476146

Add convenience method for deprecated Logger.global

XMLWordPrintable

    • b03
    • generic, x86
    • generic, linux
    • Not verified

        A DESCRIPTION OF THE REQUEST :
        With the deprecation of Logger.global, there is no convenient way of doing entry-level logging.

        Logger.getLogger(Logger.GLOBAL_LOGGER_NAME) is not an adequate substitute for Logger.global.

        A convenience method--either Logger.global() or Logger.getGlobal()--should be provided.

        JUSTIFICATION :
        http://forums.java.net/jive/thread.jspa?messageID=156587

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        Logger.global().info("See how easy logging is").
        ACTUAL -
        Logger.getLogger(Logger.GLOBAL_LOGGER_NAME).info("This isn't going to win the hearts and minds of developers.");

              sspitsyn Serguei Spitsyn
              ndcosta Nelson Dcosta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: