Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-898

Format messages asynchronously

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.2, 2.1
    • 2.5
    • None
    • None

    Description

      Formatting a message can be an expensive operation (e.g. String.format) and it is undesirable for it to be done in the calling thread when using an async logger or appender.

      LOG4J2-763 moved this work to the calling thread. Would you consider bringing back the previous behavior via a config/system property?

      Attachments

        Issue Links

          Activity

            People

              rpopma Remko Popma
              sgrssmn Steven Grossman
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: