2

So i've been searching for the best way of concatenate n (log) files in node.js The final file cannot be more than 100MB, if there is more, i should create an other one and so on.

I have some different approaches:

I wonder if you could throw me some of your experience here and also this question could be useful for someone in the future.

Cheers!

4

1 に答える 1

0

grunt-contrib-concatbuildifyはどちらも、JS ソース ファイルを 1 つのバンドルに連結するように設計されているため、タスクには適していません。

代わりにlogrotate-stream のようなものを使用することをお勧めします。

于 2015-06-08T12:14:57.493 に答える