C# Class NLog.Internal.FileAppenders.UnixMultiProcessFileAppender

Provides a multiprocess-safe atomic file appends while keeping the files open.
On Unix you can get all the appends to be atomic, even when multiple processes are trying to write to the same file, because setting the file pointer to the end of the file and appending can be made one operation.
Inheritance: BaseFileAppender
Afficher le fichier Open project: NLog/NLog

Méthodes publiques

Свойство Type Description
TheFactory IFileAppenderFactory

Méthodes publiques

Méthode Description
Close ( ) : void

Closes this instance.

Flush ( ) : void
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.

UnixMultiProcessFileAppender ( string fileName, ICreateFileParameters parameters ) : System
Write ( byte bytes ) : void

Method Details

Close() public méthode

Closes this instance.
public Close ( ) : void
Résultat void

Flush() public méthode

public Flush ( ) : void
Résultat void

GetFileCreationTimeUtc() public méthode

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

GetFileLastWriteTimeUtc() public méthode

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?
Résultat DateTime?

GetFileLength() public méthode

Gets the length in bytes of the file associated with the appeander.
public GetFileLength ( ) : long?
Résultat long?

UnixMultiProcessFileAppender() public méthode

public UnixMultiProcessFileAppender ( string fileName, ICreateFileParameters parameters ) : System
fileName string
parameters ICreateFileParameters
Résultat System

Write() public méthode

public Write ( byte bytes ) : void
bytes byte
Résultat void

Property Details

TheFactory public_oe static_oe property

public static IFileAppenderFactory TheFactory
Résultat IFileAppenderFactory