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

Inheritance: LoggerBase
Mostra file Open project: webappsuk/CoreLibraries

Public Methods

Method Description
Add ( IEnumerable logs, CancellationToken token = newCancellationToken() ) : Task

Adds the specified logs to storage in batches.

GlobalLogger ( LoggingLevels validLevels = LoggingLevels.All ) : System

Initializes a new instance of the GlobalLogger class.

Private Methods

Method Description
GlobalLogger ( ) : System

Method Details

Add() public method

Adds the specified logs to storage in batches.
public Add ( IEnumerable logs, CancellationToken token = newCancellationToken() ) : Task
logs IEnumerable The logs to add to storage.
token System.Threading.CancellationToken The token.
return Task

GlobalLogger() public method

Initializes a new instance of the GlobalLogger class.
public GlobalLogger ( LoggingLevels validLevels = LoggingLevels.All ) : System
validLevels LoggingLevels The valid levels.
return System