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

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

Private Properties

프로퍼티 타입 설명

공개 메소드들

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

Adds the specified logs to storage in batches.

EventLogger ( [ name, [ eventLog = "Application", LoggingLevels validLevels = LoggingLevels.AtLeastInformation, [ format = null, [ machineName = "." ) : System

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

EventLogger() 공개 메소드

Initializes a new instance of the EventLogger class.
public EventLogger ( [ name, [ eventLog = "Application", LoggingLevels validLevels = LoggingLevels.AtLeastInformation, [ format = null, [ machineName = "." ) : System
name [ The name of the logger.
eventLog [ The name of the event log to read/write to. /// By default this is set to "Application".
validLevels LoggingLevels The valid log levels. /// By default this is set to LogLevels.AtLeastInformation.
format [ The format.
machineName [ Name of the machine.
리턴 System