Search code examples
c#enterprise-librarynlog

Logging Block to NLog


I want to use NLog instead of default Logging Block in Exception Handling Block of Enterprise Library. Anybody have any advice or working example how to do it? Thanks.


Solution

  • You will need to create a custom exception handler that contains the appropriate NLog functionality. The Enterprise Library 5.0 - Extensibility Labs have samples on creating custom exception handlers.