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

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

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.8
    • Fix Version/s: None
    • Component/s: Appenders
    • Labels:
      None
    • Environment:
      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

            • Assignee:
              Unassigned
              Reporter:
              secovel Sean E. Covel
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: