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

why async logging is not default setting in log4j2

    XMLWordPrintableJSON

    Details

    • Type: Question
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.11.1
    • Fix Version/s: None
    • Component/s: API
    • Labels:

      Description

      Sorry I'm a green-hand here and trying to seeking answers for this question. Please let me know if my question doesn't meet the courtesy, thanks!

      As the document indicates (https://logging.apache.org/log4j/2.x/performance.html#benchmarks), async logger is almost 12 times faster than the synchronized one(also testified on my laptop), so what's the meaning of Log4j 2's still keeping synchronized log as its default setting? Is there any limitation for async logging being wildly separated in applications? Can I have any more specific examples for it? Thanks!

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              log4j_rookie Ruofan Shen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: