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

Allows logging to a TextWriter.
상속: LoggerBase
파일 보기 프로젝트 열기: webappsuk/CoreLibraries

Private Properties

프로퍼티 타입 설명

공개 메소드들

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

Adds the specified logs to storage in batches.

TextWriterLogger ( [ name, [ writer, [ format = null, LoggingLevels validLevels = LoggingLevels.All ) : System

Initializes a new instance of the TraceLogger class.

보호된 메소드들

메소드 설명
TextWriterLogger ( [ name, [ writer, [ format, bool allowMultiple, LoggingLevels validLevels ) : System

Initializes a new instance of the TextWriterLogger 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

TextWriterLogger() 공개 메소드

Initializes a new instance of the TraceLogger class.
public TextWriterLogger ( [ name, [ writer, [ format = null, LoggingLevels validLevels = LoggingLevels.All ) : System
name [ The logger name.
writer [ The writer.
format [ The format.
validLevels LoggingLevels The valid log levels.
리턴 System

TextWriterLogger() 보호된 메소드

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