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!

R01010010
  • 5,670
  • 11
  • 47
  • 77

1 Answers1

0

Both grunt-contrib-concat and buildify were designed to concatenate JS source files into one bundle, so they are not fit for your task.

I would suggest using something like logrotate-stream instead.

Leonid Beschastny
  • 50,364
  • 10
  • 118
  • 122