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

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

Private Properties

Свойство Тип Описание
Clean void
MemoryLogger System

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

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

Adds the specified logs to storage in batches.

Clear ( ) : void

Clears this instance.

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.

Приватные методы

Метод Описание
Clean ( ) : void

Cleans this instance.

MemoryLogger ( [ name, System.TimeSpan cacheExpiry = default(TimeSpan), int maximumLogEntries = 10000, LoggingLevels validLevels = LoggingLevels.All ) : System

Initializes a new instance of the MemoryLogger class.

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

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

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

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

Clears this instance.
public Clear ( ) : void
Результат void

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