Show / Hide Table of Contents

Class ConsoleLoggingProvider

An logging provider that outputs Npgsql logging messages to standard error.

Inheritance
System.Object
ConsoleLoggingProvider
Implements
INpgsqlLoggingProvider
Namespace: Npgsql.Logging
Assembly: Npgsql.dll
Syntax
public class ConsoleLoggingProvider : object, INpgsqlLoggingProvider

Constructors

ConsoleLoggingProvider(NpgsqlLogLevel, Boolean, Boolean)

Constructs a new ConsoleLoggingProvider

Declaration
public ConsoleLoggingProvider(NpgsqlLogLevel minLevel = default (NpgsqlLogLevel), bool printLevel = false, bool printConnectorId = false)
Parameters
Type Name Description
NpgsqlLogLevel minLevel

Only messages of this level of higher will be logged

System.Boolean printLevel

If true, will output the log level (e.g. WARN). Defaults to false.

System.Boolean printConnectorId

If true, will output the connector ID. Defaults to false.

Methods

CreateLogger(String)

Creates a new Npgsql.Logging.ConsoleLogger instance of the given name.

Declaration
public NpgsqlLogger CreateLogger(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
NpgsqlLogger

Implements

INpgsqlLoggingProvider
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX