Daniel Gschößer created LOGGING-171:
---------------------------------------

             Summary: Config "[%file:%line] %ndc" leads to unexpected output 
"[?:?] (null)"
                 Key: LOGGING-171
                 URL: https://issues.apache.org/jira/browse/LOGGING-171
             Project: Commons Logging
          Issue Type: Bug
    Affects Versions: 2.0
         Environment: dotnet --version
3.1.301

Microsoft™ Windows© Server 2019 Standard
Version 1809
Bestriebssystembuild 17763.720
            Reporter: Daniel Gschößer


Hello, I got an issue with "[%file:%line] %ndc".

I assembled in my Program.cs

 
{code:java}
[assembly: log4net.Config.XmlConfigurator(Watch = true, ConfigFile = 
"log4net.config")]{code}
My log4net.config works pretty fine except the "[%file:%line] %ndc" settings.
{code:java}
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <configSections>
        <section name="log4net" 
type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
    </configSections>
    <log4net>
        <appender name="ConsoleAppender" 
type="log4net.Appender.ManagedColoredConsoleAppender" >
            <layout type="log4net.Layout.PatternLayout">
                <conversionPattern value="%date %-5level %logger [%file:%line] 
%ndc - %message%newline" />
            </layout>
        </appender>
        <root>
            <level value="DEBUG" />
            <appender-ref ref="ConsoleAppender" />
        </root>
    </log4net>
</configuration>
{code}
 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to