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

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

Private Properties

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

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

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

Adds the specified logs to storage in batches.

EventLogger ( [ name, [ eventLog = "Application", LoggingLevels validLevels = LoggingLevels.AtLeastInformation, [ format = null, [ machineName = "." ) : System

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

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

Initializes a new instance of the EventLogger class.
public EventLogger ( [ name, [ eventLog = "Application", LoggingLevels validLevels = LoggingLevels.AtLeastInformation, [ format = null, [ machineName = "." ) : System
name [ The name of the logger.
eventLog [ The name of the event log to read/write to. /// By default this is set to "Application".
validLevels LoggingLevels The valid log levels. /// By default this is set to LogLevels.AtLeastInformation.
format [ The format.
machineName [ Name of the machine.
Результат System