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

A logger base class that implements log storage and retrieval.
Наследование: ILogger
Показать файл Открыть проект

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

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

Adds the specified logs to storage in batches.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Flush ( CancellationToken token = default(CancellationToken) ) : Task

Force a flush of this logger.

Защищенные методы

Метод Описание
LoggerBase ( [ name, bool allowMultiple = true, LoggingLevels validLevels = LoggingLevels.All ) : System

Initializes a new instance of the LoggerBase class.

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

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

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

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

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

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

Force a flush of this logger.
public Flush ( CancellationToken token = default(CancellationToken) ) : Task
token System.Threading.CancellationToken The token.
Результат Task

LoggerBase() защищенный Метод

Initializes a new instance of the LoggerBase class.
protected LoggerBase ( [ name, bool allowMultiple = true, LoggingLevels validLevels = LoggingLevels.All ) : System
name [ The name.
allowMultiple bool if set to the logger supports multiple instances.
validLevels LoggingLevels The valid levels.
Результат System