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

Allows logging to a TextWriter.
Наследование: LoggerBase
Показать файл Открыть проект

Private Properties

Свойство Тип Описание

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

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

Adds the specified logs to storage in batches.

TextWriterLogger ( [ name, [ writer, [ format = null, LoggingLevels validLevels = LoggingLevels.All ) : System

Initializes a new instance of the TraceLogger class.

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

Метод Описание
TextWriterLogger ( [ name, [ writer, [ format, bool allowMultiple, LoggingLevels validLevels ) : System

Initializes a new instance of the TextWriterLogger 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

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

Initializes a new instance of the TraceLogger class.
public TextWriterLogger ( [ name, [ writer, [ format = null, LoggingLevels validLevels = LoggingLevels.All ) : System
name [ The logger name.
writer [ The writer.
format [ The format.
validLevels LoggingLevels The valid log levels.
Результат System

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

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