Rcomian / bunyan-rotating-file-stream

Is an endpoint for bunyan that lets you control how much disk space logs take.
Other
29 stars 15 forks source link

Writing to a single file from multiple processes #11

Open skuchuk opened 7 years ago

skuchuk commented 7 years ago

Hi, Can you estimate when the feature which allows multiple processes to write to a single file be released?

Rcomian commented 7 years ago

This is definitely a feature I want, but I can't give a timeline for it as I don't know of a good approach to take.

The main issue is the lack of good locking semantics available to nodejs. But there are a number of issues. Might as well be worth using this issue to enumerate them. Some of them might not be issues in real life, but are things that concern me with the design, like overheads in synchronising, agreeing on log-file names, rollover logic, etc.

One thing that can be done is log to a logging service, such as splunk or logs.io. But these solutions aren't relevant to this particular project.