Click or drag to resize

GZipFileTarget Properties

The GZipFileTarget type exposes the following members.

Properties
  NameDescription
Public propertyArchiveAboveSize
Gets or sets the size in bytes above which log files will be automatically archived. Zero or negative means disabled.
(Inherited from FileTarget.)
Public propertyArchiveEvery
Gets or sets a value indicating whether to trigger archive operation based on time-period, by moving active-file to file-path specified by ArchiveFileName
(Inherited from FileTarget.)
Public propertyArchiveFileName
Legacy archive logic where file-archive-logic moves active file to path specified by ArchiveFileName, and then recreates the active file. Use ArchiveSuffixFormat to control suffix format, instead of now obsolete token {#}
(Inherited from FileTarget.)
Public propertyArchiveOldFileOnStartup
Gets or sets a value indicating whether any existing log-file should be archived on startup.
(Inherited from FileTarget.)
Public propertyArchiveSuffixFormat
Gets or sets the format-string to convert archive sequence-number by using string.Format
(Inherited from FileTarget.)
Public propertyAutoFlush
Gets or sets a value indicating whether to automatically flush the file buffers after each log message.
(Inherited from FileTarget.)
Public propertyBufferSize
Gets or sets the log file buffer size in bytes.
(Inherited from FileTarget.)
Public propertyCompressionLevel
Gets or sets whether to emphasize Fastest-speed or Optimal-compression
Public propertyCreateDirs
Gets or sets a value indicating whether to create directories if they do not exist.
(Inherited from FileTarget.)
Public propertyDeleteOldFileOnStartup
Gets or sets a value indicating whether to delete old log file on startup.
(Inherited from FileTarget.)
Public propertyDiscardAll
Gets or sets whether or not this target should just discard all data that its asked to write. Mostly used for when testing NLog Stack except final write
(Inherited from FileTarget.)
Public propertyEnableArchiveFileCompression
Gets or sets whether to enable file-compression using GZipStream
Public propertyEnableFileDelete
Gets or sets a value indicating whether to enable log file(s) to be deleted.
(Inherited from FileTarget.)
Public propertyEncoding
Gets or sets the file encoding.
(Inherited from FileTarget.)
Public propertyCode exampleFileName
Gets or sets the name of the file to write to.
(Inherited from FileTarget.)
Public propertyFooter
Gets or sets the footer.
(Inherited from TargetWithLayoutHeaderAndFooter.)
Public propertyHeader
Gets or sets the header.
(Inherited from TargetWithLayoutHeaderAndFooter.)
Protected propertyIsInitialized
Gets a value indicating whether the target has been initialized.
(Inherited from Target.)
Public propertyKeepFileOpen
Gets or sets a value indicating whether to keep log file open instead of opening and closing it on each logging event.
(Inherited from FileTarget.)
Public propertyLayout
Gets or sets the layout used to format log messages.
(Inherited from TargetWithLayoutHeaderAndFooter.)
Public propertyLineEnding
Gets or sets the line ending mode.
(Inherited from FileTarget.)
Protected propertyLoggingConfiguration
Gets the logging configuration this target is part of.
(Inherited from Target.)
Public propertyMaxArchiveDays
Gets or sets the maximum days of archive files that should be kept. Zero or negative means disabled.
(Inherited from FileTarget.)
Public propertyMaxArchiveFiles
Gets or sets the maximum number of archive files that should be kept. Negative means disabled.
(Inherited from FileTarget.)
Public propertyName
Gets or sets the name of the target.
(Inherited from Target.)
Public propertyOpenFileCacheSize
Gets or sets the maximum number of files to be kept open.
(Inherited from FileTarget.)
Public propertyOpenFileCacheTimeout
Gets or sets the maximum number of seconds that files are kept open. Zero or negative means disabled.
(Inherited from FileTarget.)
Public propertyOpenFileFlushTimeout
Gets or sets the maximum number of seconds before open files are flushed. Zero or negative means disabled.
(Inherited from FileTarget.)
Public propertyReplaceFileContentsOnEachWrite
Gets or sets a value indicating whether to replace file contents on each write instead of appending log message at the end.
(Inherited from FileTarget.)
Protected propertySyncRoot
Gets the object which can be used to synchronize asynchronous operations that must rely on the .
(Inherited from Target.)
Public propertyWriteBom
Gets or sets a value indicating whether to write BOM (byte order mark) in created files.
(Inherited from FileTarget.)
Public propertyWriteFooterOnArchivingOnly
Gets or sets a value indicating whether the footer should be written only when the file is archived.
(Inherited from FileTarget.)
Public propertyWriteHeaderWhenInitialFileNotEmpty
Gets or sets whether to write the Header on initial creation of file appender, even if the file is not empty. Default value is , which means only write header when initial file is empty (Ex. ensures valid CSV files)
(Inherited from FileTarget.)
Top
See Also