Skip to content

romkatv/NLogEvents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NLogEvents

This .NET library defines an event that triggers whenever a log record is sent to NLog. It provides an easy to use API for intercepting logs.

Usage

  1. Add a nuget dependency on NLog.Events.
  2. Define a target with type OnLogEvent in your NLog.config, and a rule that sends some logs to it.
  3. Subscribe to NLogEvents.Events.OnLog event. It'll fire whenever a log record is sent to the OnLogEvent you've defined.

See Example.

About

OnLog event for NLog

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors