You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Important
It is also to note the file does not roll within itself (truncate its older entry for newer entry).
It truncates all and appends only the new entry.
varrollers=require('streamroller');varstream=newrollers.RollingFileStream('myfile',6,0);stream.write("abc");// add as first rowstream.write("def");// add as second rowstream.write("ghi");// truncate all and add as first rowstream.end();
Activity
lamweili commentedon Jan 9, 2022
I tried the following and it didn't work.
Output:
lamweili commentedon Jan 12, 2022
I tried the following and it now works.
Important
It is also to note the file does not roll within itself (truncate its older entry for newer entry).
It truncates all and appends only the new entry.
Output:
lamweili commentedon Jan 14, 2022
For details, refer to #74 (comment)