You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Adding Custom Transports code exemple, in the log method, there's no explanation on the purpose of both the callback and setImmediate calls.
log(info,callback){// what is this for? Does Winston need it?setImmediate(()=>{this.emit('logged',info);});// Perform the writing to the remote servicecallback();// is it required to include this cb in all transports? Does Winston need it?}
The text was updated successfully, but these errors were encountered:
I agree. I also think the example could be improved. Considering the comment // Perform the writing to the remote service I'd assume the remote service is an async call. After looking at other custom transports, shouldn't the example rather read like this?
In Adding Custom Transports code exemple, in the
log
method, there's no explanation on the purpose of both thecallback
andsetImmediate
calls.The text was updated successfully, but these errors were encountered: