Posted: 17 Oct 2017 3:18 EDT Last activity: 26 Oct 2017 1:57 EDT
How to introduce timestamp in chat and cobrowse console output
Hi there, We want timestamp in Chat and CoBrowse console output for automation of log monitoring.
Can you please tell us how to get this done? We are using forever to manage the application. We have tried forever configuration to introduce the timestamp, but it does not work. So we wanted it from Chat/CoBrowse console output itself.
The Co-browse product prints timestamps in in its logserver. It is not available in the Chat product. We will look at introducing similar capability in the the future.
Console logs are present at multiple places in the product based on the requirements and it is not possible to introduce timestamp everywhere. If you need timestamps, by applying a strategy that best suits your setup, the console.log function can be overridden in node.js to prepend a timestamp to anything that console.log prints out.