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

How to configure StatisticsCsvLayout in log4j2 ?

    XMLWordPrintableJSON

Details

    Description

      Need help from migrating log4j to log4j2. I have a rollingFileAppender. I need this appender to make use of "StatisticsCsvLayout" in org.perf4j. Previously in log4j 1.x version we used to directly refer the StatisticsCsvLayout from any appender using following tag in log4j.xml.

      <Layout class="org.perf4j.log4j.StatisticsCsvLayout"/>
      We are unable to confire this from log4j2.xml as there is no provision to make use of external layouts directly. Please tell me how to configure this in log4j2.xml.

      Attachments

        Activity

          People

            Unassigned Unassigned
            MikeAndrew Mike Andrew
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: