C# 클래스 NLog.Internal.FileAppenders.CountingSingleProcessFileAppender

Implementation of BaseFileAppender which caches file information.
상속: BaseFileAppender
파일 보기 프로젝트 열기: NLog/NLog

공개 프로퍼티들

프로퍼티 타입 설명
TheFactory IFileAppenderFactory

공개 메소드들

메소드 설명
Close ( ) : void

Closes this instance of the appender.

CountingSingleProcessFileAppender ( string fileName, ICreateFileParameters parameters ) : System

Initializes a new instance of the CountingSingleProcessFileAppender class.

Flush ( ) : void

Flushes this current appender.

GetFileCreationTimeUtc ( ) : DateTime?

Gets the creation time for a file associated with the appender. The time returned is in Coordinated Universal Time [UTC] standard.

GetFileLastWriteTimeUtc ( ) : DateTime?

Gets the last time the file associated with the appeander is written. The time returned is in Coordinated Universal Time [UTC] standard.

GetFileLength ( ) : long?

Gets the length in bytes of the file associated with the appeander.

Write ( byte bytes ) : void

Writes the specified bytes to a file.

메소드 상세

Close() 공개 메소드

Closes this instance of the appender.
public Close ( ) : void
리턴 void

CountingSingleProcessFileAppender() 공개 메소드

Initializes a new instance of the CountingSingleProcessFileAppender class.
public CountingSingleProcessFileAppender ( string fileName, ICreateFileParameters parameters ) : System
fileName string Name of the file.
parameters ICreateFileParameters The parameters.
리턴 System

Flush() 공개 메소드

Flushes this current appender.
public Flush ( ) : void
리턴 void

GetFileCreationTimeUtc() 공개 메소드

Gets the creation time for a file associated with the appender. The time returned is in Coordinated Universal Time [UTC] standard.
public GetFileCreationTimeUtc ( ) : DateTime?
리턴 DateTime?

GetFileLastWriteTimeUtc() 공개 메소드

Gets the last time the file associated with the appeander is written. The time returned is in Coordinated Universal Time [UTC] standard.
public GetFileLastWriteTimeUtc ( ) : DateTime?
리턴 DateTime?

GetFileLength() 공개 메소드

Gets the length in bytes of the file associated with the appeander.
public GetFileLength ( ) : long?
리턴 long?

Write() 공개 메소드

Writes the specified bytes to a file.
public Write ( byte bytes ) : void
bytes byte The bytes to be written.
리턴 void

프로퍼티 상세

TheFactory 공개적으로 정적으로 프로퍼티

public static IFileAppenderFactory TheFactory
리턴 IFileAppenderFactory