SkillAgentSearch skills...

ConsoleLoggingSample

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

Install / Use

/learn @ardalis/ConsoleLoggingSample
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

View on GitHub
GitHub Stars6
CategoryProduct
Updated2y ago
Forks4

Languages

C#

Security Score

70/100

Audited on Jan 18, 2024

No findings