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

A logger base class that implements log storage and retrieval.
상속: ILogger
파일 보기 프로젝트 열기: webappsuk/CoreLibraries

공개 메소드들

메소드 설명
Add ( IEnumerable logs, CancellationToken token = default(CancellationToken) ) : Task

Adds the specified logs to storage in batches.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Flush ( CancellationToken token = default(CancellationToken) ) : Task

Force a flush of this logger.

보호된 메소드들

메소드 설명
LoggerBase ( [ name, bool allowMultiple = true, LoggingLevels validLevels = LoggingLevels.All ) : System

Initializes a new instance of the LoggerBase class.

메소드 상세

Add() 공개 추상적인 메소드

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

Dispose() 공개 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
리턴 void

Flush() 공개 메소드

Force a flush of this logger.
public Flush ( CancellationToken token = default(CancellationToken) ) : Task
token System.Threading.CancellationToken The token.
리턴 Task

LoggerBase() 보호된 메소드

Initializes a new instance of the LoggerBase class.
protected LoggerBase ( [ name, bool allowMultiple = true, LoggingLevels validLevels = LoggingLevels.All ) : System
name [ The name.
allowMultiple bool if set to the logger supports multiple instances.
validLevels LoggingLevels The valid levels.
리턴 System