log-rotation

Log Rotation in Node.js?

廉价感情. 提交于 2019-11-28 23:16:42
In my web analytics, I am logging the data in plain text file. I want to rotate the log on a daily basis because its logging too much data. Currently I am using bunyan to rotate the logs. Problem I am facing It is rotating the file correctly, but rotated log file are in the name log.0 , log.1 , etc. I want the file name to be log.05-08-2013 , log.04-08-2013 I can't edit the source of the bunyan package because we are installing the modules using package.json via NPM. So my question is - Is there any other log rotation in Node.js that meets my requirement? Timothy Strimple Winston does support

Logback, set max history files per day

巧了我就是萌 提交于 2019-11-28 03:16:43
问题 I use TimeBasedRollingPolicy and SizeAndTimeBasedFNATP triggering policy for my logback configuration. The rollover of log files is set to happen every day and it will also be triggered if log file size goes beyond a limit. If I do setMaxHistory(10) on TimeBasedRollingPolicy with a daily roll over, then it will archive all log files in last 10 days. But what I want is to set maxHIstory on SizeAndTimeBasedFNATP each day. Is this possible with logback? 回答1: With SizeAndTimeBasedFNATP and

Log Rotation in Node.js?

為{幸葍}努か 提交于 2019-11-27 14:38:41
问题 In my web analytics, I am logging the data in plain text file. I want to rotate the log on a daily basis because its logging too much data. Currently I am using bunyan to rotate the logs. Problem I am facing It is rotating the file correctly, but rotated log file are in the name log.0 , log.1 , etc. I want the file name to be log.05-08-2013 , log.04-08-2013 I can't edit the source of the bunyan package because we are installing the modules using package.json via NPM. So my question is - Is