C# Класс WebApplications.Utilities.Logging.Loggers.SqlLogger

Наследование: LoggerBase
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Add ( IEnumerable logs, CancellationToken token = newCancellationToken() ) : Task

Adds the specified logs to storage in batches.

SqlLogger ( [ name, [ connectionString, LoggingLevels validLevels = LoggingLevels.All )

Initializes a new instance of the SqlLogger class.

Описание методов

Add() публичный Метод

Adds the specified logs to storage in batches.
public Add ( IEnumerable logs, CancellationToken token = newCancellationToken() ) : Task
logs IEnumerable The logs to add to storage.
token CancellationToken The token.
Результат Task

SqlLogger() публичный Метод

Initializes a new instance of the SqlLogger class.
public SqlLogger ( [ name, [ connectionString, LoggingLevels validLevels = LoggingLevels.All )
name [ The name.
connectionString [ The connection string.
validLevels LoggingLevels The valid levels.