homebridge / homebridge

HomeKit support for the impatient.
https://homebridge.io
Apache License 2.0
24k stars 1.98k forks source link

Timestamp in log files #537

Closed keloin closed 6 years ago

keloin commented 8 years ago

Is it possible to add a timestamp to console.log / .error functions? Would be really helpful!

Thanks!

DerEisvogel commented 8 years ago

Hey keloin,

I had the same thinking a few weeks ago. Therefore I created a tiny plugin which adds a locale timestamp to the console output of homebridge. I have just published it for others to use.

You should be able to install it using the following command: sudo install -g homebridge--log

Looking forward to your feedback, as this is the first time I have ever published something on GitHub let alone for npm.

Best Regards, Eisvogel.

desvdp commented 8 years ago

Hi @keloin, IF you're on Linux (e.g. RaspberryPi) you might want to consider switching to system.d (see the excellent write-up here ) When doing so you'll get the time stamps for free in the journal plus to other nifty features ... see the link.

Best regards

stale[bot] commented 7 years ago

This issue has been automatically marked as stale because it has not had recent activity, and will be closed if no further activity occurs. If this issue was overlooked, forgotten, or should remain open for any other reason, please reply here to call attention to it and remove the stale status. Thank you for your contributions.