nettu-meet icon indicating copy to clipboard operation
nettu-meet copied to clipboard

Logging

Open fmeringdal opened this issue 3 years ago • 4 comments

Currently all logging is done with console.log which is not good. It should be replaced with a logging library.

fmeringdal avatar May 31 '21 20:05 fmeringdal

Hi @fmeringdal, would like to take this one up. Can we discuss?

sayan2306 avatar Jul 17 '21 12:07 sayan2306

Sure @sayan2306 👍

fmeringdal avatar Jul 17 '21 13:07 fmeringdal

I would like to address this issue using "debug"

"debug" : https://github.com/visionmedia/debug

debug is a tiny debugging tool which can use in both server and frontend side.

Can I try to solve this issue?

yugeeklab avatar Jul 29 '21 09:07 yugeeklab

Hi @YuTaeseong !

I dont think debug library is what is needed here. The debug library is as the name implies for debugging during development. Look at this comment from one of the debug maintainers.

What I would like to see is some logging library with support for different log levels (info, error, warn, debug etc) and structured logging (more context on each log message, like timestamp, server id etc) which can be indexed into a search engine like elasticsearch. Two libraries that might have support for this is pino and winston if you would like to have a look at them.

fmeringdal avatar Jul 29 '21 12:07 fmeringdal