k4m4r82 / ConsoleLoggingSample

A sample using NLog to create custom loggers that include app-specific data in the output.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ConsoleLoggingSample

A sample using NLog to create custom loggers that include app-specific data in the output.

Demonstrates:

  1. API-based NLog configuration
  2. Database logging
  3. Named loggers (per-class)
  4. Custom Logger child class (with app-specific data)
  5. Logging app-specific columns to database / output

To see a separate sample that uses StructureMap to inject a custom ILog interface, go here:
https://github.com/ardalis/StructureMapLoggingSample

About

A sample using NLog to create custom loggers that include app-specific data in the output.

License:MIT License


Languages

Language:C# 100.0%