C# Class WebApplications.Utilities.Logging.Loggers.EventLogger

Inheritance: LoggerBase
Afficher le fichier Open project: webappsuk/CoreLibraries

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
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.

Method Details

Add() public méthode

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.
Résultat Task

EventLogger() public méthode

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.
Résultat System