Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8001632 Umbrella: Library Lambdafication
  3. JDK-8005263

Logging APIs takes a Supplier<String> for message

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Fixed
    • P4
    • None
    • None
    • core-libs
    • None

    Description

      It's often that logging is used for diagnosis purpose and will need some heavy construction of the log message. However, such logging is often disabled until needed.

      Current API takes String as a parameter and will have the message constructed always, by taking a Supplier function instead, the construction of String is deferred until we know it is to be logged by current log level setting.

      Attachments

        Activity

          People

            henryjen Henry Jen
            henryjen Henry Jen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: