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

Line Number Not getting printed in log file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 2.17.0
    • None
    • Appenders
    • None

    Description

      I am not able to print line numbers in logs. I am using 2.17.0 version and using pattern

      <PatternLayout
      pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} [%t] %-5p %logger{36}:%L %X - %m%n" />.

       

      I have tried with multiple patterns but issue still persists. It is basically neglecting %L. Can anyone please have a look at this?

      Attachments

        1. log4j2.xml
          2 kB
          Sagar Salal

        Activity

          People

            Unassigned Unassigned
            sagarsalal Sagar Salal
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: