1
votes

Has anyone figured out how to leverage Common.Logging to set the EventLog ID when wrapping NLog? I have it working beautifully under NLog, but had trouble figuring out how to do it with Common.Logging. Note that I can also use Common.Logging with NLog as long as I don't need to set the EventLog ID, but that isn't helpful.

I saw the SO article here, but was unsure of how to implement the suggestions.

Thanks in advance.

2

2 Answers

1
votes

This might be old for the original question, but I found this SO Thread to work. It describes how to correctly wrap NLog. Adding the info here as I landed here while searching for the keywords Common.Logging and event log.

1
votes

According to the Common.Logging website (near the bottom under Release Schedule), they mention upcoming support for Logging Context in the next release. I take that to mean that it is not yet supported.