Advanced Logging with NLog

a presentation by @kjellski

for the 

@DOTNETHH

Agenda

  • NLog Project
  • NLog Architecture
  • Code:
    • how to start
    • how to debug
    • advanced techinques

NLog Project

NLog Architecture

Configuration

  • web.config
  • NLog.config
  • programmatically

NLog Architecture

Targets

  • Ouput sinks (where to log to)
  • Already existing targets:
    • Database
    • EventLog
    • Email
    • UDPPort
    • ... 

NLog Architecture

Rules

  • Are you really logging it?
  • Redirect, multiplex and distribute
  • Custom matcher
  • ...

Show me some code!

Useful Links

Thanks for all the fish!

Happy Logging!

Advanced Logging with NLog

By Kjell Otto

Advanced Logging with NLog

SourceCode on github.com:

  • 1,862