C# Класс 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.
Наследование: BaseFileAppender
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
TheFactory IFileAppenderFactory

Открытые методы

Метод Описание
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

Описание методов

Close() публичный Метод

Closes this instance.
public Close ( ) : void
Результат void

Flush() публичный Метод

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?

UnixMultiProcessFileAppender() публичный Метод

public UnixMultiProcessFileAppender ( string fileName, ICreateFileParameters parameters ) : System
fileName string
parameters ICreateFileParameters
Результат System

Write() публичный Метод

public Write ( byte bytes ) : void
bytes byte
Результат void

Описание свойств

TheFactory публичное статическое свойство

public static IFileAppenderFactory TheFactory
Результат IFileAppenderFactory