mathew-kurian / Scribe.js

:scroll: Node.js logging made simple! Online access to logs and more...
https://mathew-kurian.github.io/Scribe.js/
MIT License
284 stars 45 forks source link

Scribe.js as a multi-server solution #42

Open freak4pc opened 9 years ago

freak4pc commented 9 years ago

Could scribe.js be used as a Central Logging system / server ?

e.g. all logs are centralized to one location so I could see all server activity across different instances? I could just give a different "tag" to each server but I'm not sure how would I be able to centralize all the logs from different servers in one, central server.

Any info would be appreciated :)

guillaumewuip commented 9 years ago

Hi @freak4pc I just published 3 days ago a post on medium describing how I use Scribe.js as a log aggregator :smile:

I have one NodeJS server running scribe and listening for AMQP messages. This messages are logs send over AMQP by other servers (NodeJs or whatever).

Feel free to ask more questions if the post is not helpful enough.

rizkyprilian commented 8 years ago

Hi @guillaumewuip , I saw your post and you could override filename and line number by using

console.file('sample.js',26).log('Hello World')

However when i tried, it didn't work. I didn't see the mechanism neither in the console2.js . Was it removed? Thank you

Update : I was installing the modules via npm. It turns out it was different code than the one in github. I replaced the code and it was working

mathew-kurian commented 8 years ago

Scribe is currently being used in a multi-server concurrent production environment. Please refer to the dev branch for more information