¡@

Home 

c# Programming Glossary: logevent

How to retain callsite information when wrapping NLog

http://stackoverflow.com/questions/7412156/how-to-retain-callsite-information-when-wrapping-nlog

create log event from the passed message LogEventInfo logEvent new LogEventInfo LogLevel.Info _logger.Name message set event.. parameter can be retrieved using event context EventID logEvent.Context EventID eventID Call the Log method. It is important.. will not work properly. _logger.Log typeof MyLogger logEvent The key is passing the type of your logger wrapper to the..