Uploaded image for project: 'SLF4J'
  1. SLF4J
  2. SLF4J-504

Add methods with Supplier into Logger methods

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • None
    • None

    Description

      In kotlin we want to use

      logger.trace { "Message with $parameter" }

      instead of

      logger.trace("Message with {}", parameter) 

      I suggest adding default method Logger.trace (debug, etc)

      default void trace(Supplier<String> msgSupplier)

      with trivial implementations like https://github.com/qos-ch/slf4j/pull/253 or https://github.com/qos-ch/slf4j/pull/252

      Attachments

        Activity

          People

            slf4j-dev SLF4J developers list
            alxt Aleksey Tomin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: