akashjs
akashjs copied to clipboard
Implement logger
Currently project utilises nodejs console.log
for logging with doesn't provide a desired observability or debugging experience. Some of the issues:
- noisy tests outputs
- no way to filter or identify logs by levels which complicates decision making
- logs are simple strings which would complicate indexing if stored in tools like kibana or grafana
A good way to address this would be having a proper logger having common features. One of the good ones is pino.
- [ ] replace all the logs with a properly scoped pino logger