Our Winston logging is already set up and working great using winston-daily-rotate-file to create daily log files. What I now need to do is create those log files from a specific file template (or any other method) with a few header rows at the start of the file. We want to change our application to use a more stuctured logging for use with a separate internal app so our support team can easier traverse large log files.
Normally the log files append each log into the file, starting with a blank file. To specify, I want that file to begin with a few lines of text before any logging is added.
Is this possible? I can't find any reference to functionality like this in either Winston or winston-daily-rotate-file. Perhaps I'm meant to create hook into the file stream using the options object parameter?
from Winston logging to a file that begins with custom multi line text
No comments:
Post a Comment