Relative Content

Tag Archive for node.jsloggingwinston

winston circular declaration in node.js

i didn’t declare winston in the index.js but have declared in the other files which have been required in the index.js when i try to declare it and use the error displayed was ‘winston already declared’ so tried using winston without declaring it but the error stayed the same how do i use winston.info in this situation to log.

winston circular declaration in node.js

i didn’t declare winston in the index.js but have declared in the other files which have been required in the index.js when i try to declare it and use the error displayed was ‘winston already declared’ so tried using winston without declaring it but the error stayed the same how do i use winston.info in this situation to log.

Http transport : Log buffering when offline

I have a nodeJS app running on a RPI with Winston as logger. It sends logs to a custom express api, using the built in http transport. However due to some instabilities on the internet connection on the RPI location, it seems that some logs are lost (typically if it tries to send a batch of log when the internet connection is down).