C# 클래스 NLog.Targets.FileTarget.DynamicFileArchive

파일 보기 프로젝트 열기: NLog/NLog

공개 메소드들

메소드 설명
DynamicFileArchive ( FileTarget fileTarget, int maxArchivedFiles ) : Common.System

Creates an instance of DynamicFileArchive class.

InitializeForArchiveFolderPath ( string archiveFolderPath ) : void

Adds the files in the specified path to the archive file queue.

비공개 메소드들

메소드 설명
AddToArchive ( string archiveFileName, string fileName, bool createDirectory ) : void

Archives the file, either by copying it to a new file system location or by compressing it, and add the file name into the list of archives.

Archive ( string archiveFileName, string fileName, bool createDirectory ) : bool
DeleteOldArchiveFiles ( ) : void

Remove old archive files when the files on the queue are more than the P:MaxArchiveFilesToKeep.

ExtractArchiveNumberFromFileName ( string archiveFileName ) : int
GetNextArchiveFileName ( string fileName ) : string

Gets the file name for the next archive file by appending a number to the provided "base"-filename. Example: Original Filename trace.log Target Filename trace.15.log

메소드 상세

DynamicFileArchive() 공개 메소드

Creates an instance of DynamicFileArchive class.
public DynamicFileArchive ( FileTarget fileTarget, int maxArchivedFiles ) : Common.System
fileTarget FileTarget The file target instance whose files to archive.
maxArchivedFiles int Maximum number of archive files to be kept.
리턴 Common.System

InitializeForArchiveFolderPath() 공개 메소드

Adds the files in the specified path to the archive file queue.
public InitializeForArchiveFolderPath ( string archiveFolderPath ) : void
archiveFolderPath string The folder where the archive files are stored.
리턴 void