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

상속: LoggerBase
파일 보기 프로젝트 열기: webappsuk/CoreLibraries

Private Properties

프로퍼티 타입 설명
Clean void
MemoryLogger System

공개 메소드들

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

Adds the specified logs to storage in batches.

Clear ( ) : void

Clears this instance.

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.

비공개 메소드들

메소드 설명
Clean ( ) : void

Cleans this instance.

MemoryLogger ( [ name, System.TimeSpan cacheExpiry = default(TimeSpan), int maximumLogEntries = 10000, LoggingLevels validLevels = LoggingLevels.All ) : System

Initializes a new instance of the MemoryLogger class.

메소드 상세

Add() 공개 메소드

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

Clear() 공개 메소드

Clears this instance.
public Clear ( ) : void
리턴 void

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