C# 클래스 WebApplications.Utilities.Logging.Loggers.SqlLogger

상속: LoggerBase
파일 보기 프로젝트 열기: webappsuk/CoreLibraries 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

Add() 공개 메소드

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.
리턴 Task

SqlLogger() 공개 메소드

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.