node-modules/logfilestream

参数太挫~~~

Closed this issue · 1 comments

 this._stream = logfilestream({
    logdir : cfg.file,
    nameformat :  '[info.]YYYY-MM-DD[.log]'
  });

nameformat 太挫了,改成通用点的格式咯,比如 : info.%year%-%month%-%day%.log

或者 logfilestream直接接收一个stream更方便:

 this._stream = logfilestream(/wwwroot/error.%year%.%month%.log”);

momentjs的日期格式参数,%year% 这个不是通的格式,而且不知道是4位还是2位年份格式。

Sent from my iPhone

On 2012-10-27, at 16:09, fish notifications@github.com wrote:

this._stream = logfilestream({
logdir : cfg.file,
nameformat : '[info.]YYYY-MM-DD[.log]'
});

nameformat 太挫了,改成通用点的格式咯,比如 : info.%year%-%month%-%day%.log

或者 logfilestream直接接收一个stream更方便:

this._stream = logfilestream(“/wwwroot/error.%year%.%month%.log”);


Reply to this email directly or view it on
GitHubhttps://github.com//issues/1.