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

Inheritance: LoggerBase
Show file Open project: webappsuk/CoreLibraries

Private Properties

Property Type Description

Public Methods

Method 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 method

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.
return Task

EventLogger() public method

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.
return System