Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

Admin page to see server logs

Open sampaiodiego opened this issue 10 years ago • 10 comments

We could have a admin page to see server logs using streams.

An implementation should be wrapping console.log function to send any message to a stream which clients could subscribe to.

sampaiodiego avatar Dec 28 '15 13:12 sampaiodiego

+1

Megatronic79 avatar Jan 02 '16 23:01 Megatronic79

:+1:

noregard avatar Jan 04 '16 06:01 noregard

:+1:

Bitti09 avatar Mar 16 '16 15:03 Bitti09

view-logs is available at http://(host-name)/admin/view-logs , go to http://(host-name)/admin/General and set the Debug Level to all logs image

image

vidhya03 avatar Mar 16 '16 18:03 vidhya03

Yes, as mentioned the above is now implemented. :+1:

graywolf336 avatar Mar 16 '16 18:03 graywolf336

Where are these saved on the server?

alsaedwy avatar Dec 25 '18 10:12 alsaedwy

they're sent to stdout..

sampaiodiego avatar Dec 26 '18 12:12 sampaiodiego

they're sent to stdout..

Thanks for your reply! How can I save them, though?

alsaedwy avatar Dec 26 '18 12:12 alsaedwy

it's up to you.. it depends entirely on how your set up is..

if you run just node, you could do for example: node main.js > saved-logs.txt got it?

sampaiodiego avatar Dec 26 '18 12:12 sampaiodiego

it's up to you.. it depends entirely on how your set up is..

if you run just node, you could do for example: node main.js > saved-logs.txt got it?

Yes, that worked for me, many thanks! :)

alsaedwy avatar Dec 28 '18 13:12 alsaedwy