{"action":"created","issue":{"url":"https://api.github.com/repos/net-commons/common-logging/issues/127","repository_url":"https://api.github.com/repos/net-commons/common-logging","labels_url":"https://api.github.com/repos/net-commons/common-logging/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/net-commons/common-logging/issues/127/comments","events_url":"https://api.github.com/repos/net-commons/common-logging/issues/127/events","html_url":"https://github.com/net-commons/common-logging/issues/127","id":166931882,"number":127,"title":"Stack overflow exception when adding a trace listener.","user":{"login":"B3nCr","id":1277268,"avatar_url":"https://avatars.githubusercontent.com/u/1277268?v=3","gravatar_id":"","url":"https://api.github.com/users/B3nCr","html_url":"https://github.com/B3nCr","followers_url":"https://api.github.com/users/B3nCr/followers","following_url":"https://api.github.com/users/B3nCr/following{/other_user}","gists_url":"https://api.github.com/users/B3nCr/gists{/gist_id}","starred_url":"https://api.github.com/users/B3nCr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/B3nCr/subscriptions","organizations_url":"https://api.github.com/users/B3nCr/orgs","repos_url":"https://api.github.com/users/B3nCr/repos","events_url":"https://api.github.com/users/B3nCr/events{/privacy}","received_events_url":"https://api.github.com/users/B3nCr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/net-commons/common-logging/labels/bug","name":"bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-07-21T22:25:10Z","updated_at":"2016-08-17T10:20:29Z","closed_at":"2016-08-15T10:23:29Z","body":"Hi\r\n\r\nI'm trying to get the trace logging from a third party library included in my common.logging output. However, when I add a trace listener I start getting stack overflow exceptions. Presumably something in my chain of listeners and loggers is getting in a loop but I can't really understand what.\r\n\r\n\r\nThe error seems to be thrown from this line but I can't be 100% sure because I don't know how stack trace can be preserved in a stack overflow exception.\r\n\r\n        private static readonly Common.Logging.ILog Logger = LogManager.GetLogger<Startup>();\r\n\r\nHere's my config. I guess this could be a a question for the log4net team.\r\n    \r\n    <system.diagnostics>\r\n        <sharedListeners>\r\n            <add name=\"myRealListener\"\r\n                 type=\"Common.Logging.Simple.CommonLoggingTraceListener, Common.Logging\"\r\n                 initializeData=\"DefaultTraceEventType=Information; LoggerNameFormat={0}.{1}; Name=DiagnosticsTraceLogger\">\r\n                <filter type=\"System.Diagnostics.EventTypeFilter\" initializeData=\"Information\" />\r\n            </add>\r\n        </sharedListeners>\r\n        <trace>\r\n            <listeners>\r\n                <add name=\"myRealListener\" />\r\n            </listeners>\r\n        </trace>\r\n    </system.diagnostics>\r\n    <common>\r\n        <logging>\r\n            <factoryAdapter type=\"Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4Net1215\">\r\n                <arg key=\"configType\" value=\"INLINE\" />\r\n            </factoryAdapter>\r\n        </logging>\r\n    </common>\r\n    <!-- Log4Net used to log exceptions sent by client -->\r\n    <log4net debug=\"true\">\r\n        <appender name=\"RollingLogFileAppender\" type=\"log4net.Appender.RollingFileAppender\">\r\n            <file value=\".\\Log\\AppLog\" />\r\n            <appendToFile value=\"true\" />\r\n            <rollingStyle value=\"Date\" />\r\n            <datePattern value=\"yyyy-MM-dd&quot;.log&quot;\" />\r\n            <staticLogFileName value=\"false\" />\r\n            <layout type=\"log4net.Layout.PatternLayout\">\r\n                <conversionPattern value=\"%date [%thread] %-5level %logger [%property{NDC}] - %message%newline\" />\r\n            </layout>\r\n        </appender>\r\n        <root>\r\n            <level value=\"DEBUG\" />\r\n            <appender-ref ref=\"RollingLogFileAppender\" />\r\n        </root>\r\n    </log4net>"},"comment":{"url":"https://api.github.com/repos/net-commons/common-logging/issues/comments/240372369","html_url":"https://github.com/net-commons/common-logging/issues/127#issuecomment-240372369","issue_url":"https://api.github.com/repos/net-commons/common-logging/issues/127","id":240372369,"user":{"login":"sbohlen","id":186336,"avatar_url":"https://avatars.githubusercontent.com/u/186336?v=3","gravatar_id":"","url":"https://api.github.com/users/sbohlen","html_url":"https://github.com/sbohlen","followers_url":"https://api.github.com/users/sbohlen/followers","following_url":"https://api.github.com/users/sbohlen/following{/other_user}","gists_url":"https://api.github.com/users/sbohlen/gists{/gist_id}","starred_url":"https://api.github.com/users/sbohlen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbohlen/subscriptions","organizations_url":"https://api.github.com/users/sbohlen/orgs","repos_url":"https://api.github.com/users/sbohlen/repos","events_url":"https://api.github.com/users/sbohlen/events{/privacy}","received_events_url":"https://api.github.com/users/sbohlen/received_events","type":"User","site_admin":false},"created_at":"2016-08-17T10:20:29Z","updated_at":"2016-08-17T10:20:29Z","body":"I'll try to push an Alpha2 pre-release package (with this fix) to NuGet later today.  Standby...."}}
{"actor":{"display_login":"sbohlen"}}