log4js-node / streamroller

node.js file streams that roll over when they reach a maximum size, or a date/time.
MIT License
38 stars 19 forks source link

Improve the format of the rotation template by date #37

Open KonovalovaKV opened 5 years ago

KonovalovaKV commented 5 years ago

Is it possible to add the ability to rotate by date so that you can specify not only the pattern, but also the path using the pattern. For example: filePattern="logs/arch/{yy-MM-dd}/add/update.log"

KonovalovaKV commented 5 years ago

Any news?

nomiddlename commented 5 years ago

Sounds like a reasonable thing to want to do. I'd be happy to see a pull request for this, but it would make more sense for this change to be made on the streamroller library that log4js uses.