Open ronkorving opened 7 years ago
The UDP socket is unref'ed to allow automatic process shutdown.
Wouldn't this also mean that buffered messages might not get sent?
No, all messages in the queue will get sent (since there are events preventing the process from shutting down for as long as there are messages that haven't yet been sent). The moment the queue is empty, the logger emits a drain
event to which it responds itself by closing the socket.
@ronkorving I'm not using this lib anymore in my project, so I don't have an simple way to check for #16
@navihtot Understood. Thanks for checking in though :)
I am using this lib, is there a way I can test out or somehow help?
@Fl4m3Ph03n1x I'm no longer using it these days, so am afraid I don't have the tools at my disposal nor the time to take this PR to completion. If you want, you could pull in this branch and take ownership by taking it to its conclusion.
@ronkorving Ahhh, this is confusing to me. Who will then update the project on NPM? I don't have the permissions to do it, even if I complete the PR, it will be useless.
Can I at least be added as a collaborator for NPM if I take ownership of the project? ( that's what we are talking about here, right ? )
@stelcheck can update the project on NPM, as can I.
I'm perfectly happy with more maintainers (a landable PR will sell that :)), but @stelcheck will also have to be in agreement with adding maintainers. I was talking about taking ownership of this PR.
I will see what I can do. So far the one thing I don't get is how to get a hold on the PR. I suppose I would fork the project and then what?
git checkout -b ronkorving-refactor2 master
git push origin ronkorving-refactor2
ronkorving-refactor2
branch to this repository.Thanks, I'll see what I can do! Hopefully I am up for the task!
Good luck!
I think you should just publish the fork as just graylog
package.
At this point your version seems better and this is unmaintained.
Improvements:
client.close
behavior.var Graylog = require('graylog');
, no more need (although still supported) for a property lookup.logger.compressed
andlogger.sent
integers (undocumented, but quite useful during tests).Changes:
logger.config
is no longer exposed.TODO:
cc @stelcheck @slang800
Closes #10 Closes #21 This should also make #19 behave better (please confirm, @jasonmcaffee). This should fix #16 (please confirm, @navihtot)