Skip to content
Snippets Groups Projects
Commit 522a0c21 authored by Sigmund, Dominik's avatar Sigmund, Dominik
Browse files

modern udp

parent 676efac2
No related branches found
No related tags found
1 merge request!1Update index.test.js, examples/all-options.js, examples/log-to-file.js,...
......@@ -128,10 +128,17 @@ function Log (options) {
facility: this.name,
level:tag
}))
graylog.send(buffed, this.options.graylog.port, this.options.graylog.server, function(error){
if (error) {
console.error(error)
}
graylog.connect(this.options.graylog.port, this.options.graylog.server, (err) => {
if (err) {
console.error(err)
} else {
graylog.send(buffed, (error) => {
if (error) {
console.error(error)
}
graylog.close();
})
}
})
}
return msg
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment