Closed doasync closed 6 years ago
The files are rewritten on each run. How can I append lines to files?
Here is my code: Gist code example
Can you add -a flag? stackoverflow
-a
https://github.com/pinojs/pino-tee/blob/f13b9bcb79c083689895e274b86ebe782bff9338/tee.js#L71
P.S. I think it should append by default (if files exist). If I want to clear log files, I'd better delete the files myself.
The files are rewritten on each run. How can I append lines to files?
Here is my code: Gist code example
Can you add
-a
flag? stackoverflowhttps://github.com/pinojs/pino-tee/blob/f13b9bcb79c083689895e274b86ebe782bff9338/tee.js#L71
P.S. I think it should append by default (if files exist). If I want to clear log files, I'd better delete the files myself.