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
If you have a callback waiting on a log action and a transport such as Loggly, what is the default timeout? Can this be configured so if Loggly is in a bad state (such as accepting the socket but hanging etc..) we dont wait for maximum/default socket timeout or one of those scenarios where the timeout doesnt get invoked (drip feeding a packet a minute etc..) we arent vunerable. Lets say we have this:
function handleUncaughtException(err) {
log.error('CRAP. in an unreliable state, lets get out of here QUICK and let supervisord,upstart, monit, god etc.. restart us')
log.info('exiting', function() {
process.exit(0)
})
}
The text was updated successfully, but these errors were encountered:
Also, Internally are the write queued to preserve ordering?, so in the above, I have a callback on the second log statement (but not the first) I can be assured that the first has successfully completed due the queue?
any update to this? are we guaranteed order? and more importantly can a log action stall forever and a day? if not take a look at the internals of log4j or log4net, a lot of hacky but appreciated magic
@mattopenstack Ordering is perserved in all of the winston transports. You can still use HTTP in your uncaughtException handler, but I think it would be wise to listen to some of the newer log events that will be coming out in HEAD.
I'll create a test for this and let you know my findings
If you have a callback waiting on a log action and a transport such as Loggly, what is the default timeout? Can this be configured so if Loggly is in a bad state (such as accepting the socket but hanging etc..) we dont wait for maximum/default socket timeout or one of those scenarios where the timeout doesnt get invoked (drip feeding a packet a minute etc..) we arent vunerable. Lets say we have this:
The text was updated successfully, but these errors were encountered: