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

Convenient formatting method when logging

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P5 P5
    • None
    • 6
    • core-libs

      A DESCRIPTION OF THE REQUEST :
      It'd be nice if I to be able to do this in Java 7:
      log.formatInfo("Kill session %s", session.getName())

      instead of the more verbose:
      log.info(String.format("Kill session %s", session.getName()));

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

              Created:
              Updated:
              Imported:
              Indexed: