RotatingFileTransport
Hierarchy
- FileTransport<RotatingFileTransportOptions>
- RotatingFileTransport
Index
Constructors
constructor
Properties
readonlylevels
readonlyoptions
readonlypath
optionalstream
Methods
blueprint
close
Close the file stream and trigger the callback when finished.
configure
Set an options object by merging the new partial and existing options with the defined blueprint, while running all validation checks. Freeze and return the options object.
object.configure({ name: 'Boost' });
object.configure((prevOptions) => ({
nestedObject: {
...prevOptions.nestedObject,
some: 'value',
},
}));
format
Format the log item into a message string, and append a trailing newline if missing.
formatTimestamp
Format a
Date
object into a format used within the log file name.
open
Open the file stream for writing.
write
Write a message to the file stream, and rotate files once written if necessary.
Validated and configured options.