Skip to content
Rolf Kristensen edited this page May 18, 2022 · 22 revisions

The following article has related news post: Extending NLog is... easy!

If one needs to capture additional context for target output, then one can create own custom NLog LayoutRenderer. But usually most people will just make use of NLog LogEvent Properties for providing custom context. Ensure also to check the available layoutrenderers.

If one needs to redirect output to a different output target destination, then one can create own custom NLog Target. But usually most people will just make use of NLog Network-Target or NLog WebService-Target and override the NLog Layout to match the payload format. Ensure also to check the available targets.

Write Extensions

Register Extensions

Clone this wiki locally