Logging
fmeringdal opened this issue · comments
Currently all logging is done with console.log
which is not good. It should be replaced with a logging library.
Hi @fmeringdal, would like to take this one up. Can we discuss?
Sure @sayan2306 👍
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?
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.