Sails.js Registration System

I need to register with our sails server. I found sailing logging to file

But I'm afraid that I do not understand this very well. The intention is to replace console.log with a log system.

This is just one example from many places where I need to implement a registrar:

  s3.putObject(params, function (err, data) {
                        if (err)
                            console.log(err);
                        else                         
                            console.log("Successfully uploaded " + 

//etc.

+4
source share
1 answer

sails.log.error(), sails.log.warn(), sails.log.verbose() .. , config/logs.js. , (--verbose).

+4

Source: https://habr.com/ru/post/1533004/


All Articles