Skip to main content

FileTransportOptions

Hierarchy

Index

Properties

optionaleol

eol?: string

End of line character to append to a message. Defaults to os.EOL.

optionalformat

format?: Formatter

Function to format a log item into a message string. Default is transport dependent.

optionalgzip

gzip?: boolean

Apply gzip compression to the write stream.

levels

levels: LogLevel[]

List of log levels to only write messages for.

optionalmaxSize

maxSize?: number

Maximum file size before rotating file. Will create a backup and truncate the current file. Defaults to 10mb.

path

path: PortablePath

Absolute file system path for the intended log file.