winstonjs / winston-daily-rotate-file

A transport for winston which logs to a rotating file each day.
MIT License
889 stars 151 forks source link

[Feature Request] Creating each new log file from a template #351

Open matt123miller opened 2 years ago

matt123miller commented 2 years ago

Hi team,

We've been using this package in production for a long time now, but have requirements for changing our logging so that the files can better integrate with some internal tools that use the GenericParsing dotnet library. We need each log file to begin with a few lines of text and some text columns before any logs are inserted. From there I can format the contents of each new log entry to match the expected format for each row.

We use versions Node: 14.17.4 "winston": "^3.1.0", "winston-daily-rotate-file": "^4.5.0",

I also posted a Stack Overflow question about this.

Is this functionality something that is accomplished through this package or winston itself? If not I could look into making a PR with this feature if it's something the winston team would be interested in?

(edits for spelling and more information)