nw / stream-rotate Goto Github PK
View Code? Open in Web Editor NEWstream interface that allows log rotation
stream interface that allows log rotation
I think that retention should be calculated in round timing.
For example:
Retention time: 1d
Open stream time: 10:00:00
Retention expire is: next day 10:00:00
Should be better if it will be next day: 00:00:00
For example ts_format: "YYYY-MM-DD" if file rotated more than once per day the log is overwritten.
I'm attempting to set the ts_format option but see that it is not available in the stream-rotate code. When will this option be available for implementation? I'm currently using version 0.0.4.
I have a cron job that kicks off a node.js process every 10 minutes. I've noticed that the log I create for this process using stream-rotate never gets rotated. My frequency interval is set to 1d (1 day). While investigating, I learned that if I set the freq to 1m, the log rotates. However, I need the log to rotate on a daily basis for this process.
Also note, I have a website that has been built using node.js and have implemented stream-rotate there. Log rotation is happening on a daily basis as expected. The only difference I see here is that my site is always running, and the CRON process ends after each run. Is this a bug or am I not using stream-rotate properly?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.