npm i daily-rotating-file-stream
The name of the log file(s). Must contain a %DATE%
placeholder.
The format of the date that will replace the placeholder %DATE%
in the file name. Defaults to DDMMYYYY
.
Supports all formating options of fast-date-format.
The size of the internal buffer that is used to store the logs before writing them to the file. Defaults to 4096
.
Writes a string to the file.
Flushes the content of the buffer to the file.
Destroys the stream.
Flushes the data and ends the stream.