garden / tree

A multiplayer file system
https://thefiletree.com
European Union Public License 1.2
70 stars 23 forks source link

logs enhancement #173

Closed rclaude closed 11 years ago

rclaude commented 11 years ago

The goal is to have logs structured and with relevant informations to do machine learning on it.

New standard to build csv formatted logs : tree path create ... send ... meta-save ... ot ...
plug ... not concerned here
espadrine commented 11 years ago

This is great, and right in line with something I'd like to do.

However, we can't just do it like this.

  1. What resides in node_modules may be updated any time, and would override this commit.
  2. Logging could become so much more. If we are to change that, let's do the best we can. I started working on that a while back, and the main things I want for a future logging system are:
    • No blocking I/O. Currently console.log() is blocking because it redirects to a file.
    • Ability to filter through tags; I explore this idea in https://github.com/espadrine/multilog.
    • Guarantee that it gets written down when the app crashes. Use node's domains for that.

Once multilog achieves all of those requirements, I encourage using it in tree, and even ultimately having a plug to view it (with filtering UI, etc), much like plugs/profiler.html. I'm really happy that you care about logging too. I'd love to have your help to get there.