Logging APIs takes a Supplier<String> for message

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Fixed
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: core-libs
    • None

      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.

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

              Created:
              Updated:
              Resolved: