8 fun and free things to do in Toronto when you are broke

There are many free and amazing things to do in Toronto. Even if you have such bad habits as eating and occasionally need for entertainment, it’s possible to enjoy yourself and still save money when…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




PostgreSQL Logging in .NET Core

PostgreSQL is a powerful, open-source object-relational database system and is popular among enterprises. NpgSql is .NET data provider for PostgreSQL and includes a built-in feature for outputting logging events which can help debug issues.

For logging the events from NpgSql using ILogger provided by Microsoft.Extensions.Logging, we can create our own implementation for NpgsqlLogger and INpgsqlLoggingProvider as follows.

Implementation of NpgsqlLogger

Implementation of NpgsqlLoggerProvider

Plugging NpgsqlLoggerProvider in .NET Core pipeline

Add a comment

Related posts:

How to Implement a Successful Social CRM Strategy

The goal of any social CRM strategy should be engaging your customer base, which would lead to better customer relations. When your customers have an easier time interacting with you, they’ll walk…