Uploaded image for project: 'Log4net'
  1. Log4net
  2. LOG4NET-606

%L in pattern prints ? instead of line number Asp.Net Core 2.1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0.8
    • None
    • Appenders
    • None
    • MacOs 10, Windows 7, RHEL 7, ASP.Net Core 2.1

    Description

      using %L in conversion pattern results in a ?, not the line number.

      <layout type="log4net.Layout.PatternLayout, log4net">
      <conversionPattern value="%d{yyyy-MM-dd'T'HH:mm:ss.fff'Z'} %-5p [%property\{server_name} %property\{service_name} %property\{service_port} %property\{CorrelationId}][%t] %c{5}:%L - %m%n"/>
      </layout>

      2018-07-19T10:24:19.251Z DEBUG [L74F00-PC08PHCSt customer_V1-0-0 8088 (null)][26] InfluxDbClient:? - WritePointUdpAsync storage_event

       

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            secovel Sean E. Covel
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: