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

Inheritance: LoggerBase
Afficher le fichier Open project: webappsuk/CoreLibraries Class Usage Examples

Méthodes publiques

Méthode Description
Add ( IEnumerable logs, CancellationToken token = newCancellationToken() ) : Task

Adds the specified logs to storage in batches.

SqlLogger ( [ name, [ connectionString, LoggingLevels validLevels = LoggingLevels.All )

Initializes a new instance of the SqlLogger class.

Method Details

Add() public méthode

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

SqlLogger() public méthode

Initializes a new instance of the SqlLogger class.
public SqlLogger ( [ name, [ connectionString, LoggingLevels validLevels = LoggingLevels.All )
name [ The name.
connectionString [ The connection string.
validLevels LoggingLevels The valid levels.