cjbhaines / Log4Net.Async

Asynchronous Log4Net appenders and forwarder
http://www.nuget.org/packages/Log4Net.Async/
MIT License
121 stars 37 forks source link

LogicalThreadContext properties not logged #10

Closed alex-davies closed 9 years ago

alex-davies commented 9 years ago

When using the AsyncRollingFileAppender and adding properties view LogicalThreadContext the properties are not logged.

Seems to be resolving the properties lazily, so it is resolving properties in the context of the AppendTask rather than in the context the message was added to the log.

cjbhaines commented 9 years ago

I'm reluctant to do any more work on the async appenders. I'm tempted to even obsolete them or possibly remove them in a major version bump release. The AsyncForwarder is a much better solution and you can also wrap multiple appenders in one forwarder to reduce the number of background threads you have running. The bug you mention is not present in the AsyncForwarder.