baryon / tracer

A powerful and customizable logging library for node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dailyfile maxLogFiles ignored in Windows

SHuckel opened this issue · comments

That should do the trick in dailyfile.js:

spawn('forfiles', ['/P', '"' + _conf.root + '"', '/D', '-' + _conf.maxLogFiles, '/M', '*.log', '/C', '"cmd /C del @fname.@ext"'], {windowsVerbatimArguments: true});

Very nice module by the way :)