winston-syslog
Advanced tools
Comparing version 2.4.4 to 2.5.0
# CHANGELOG | ||
## v2.5.0 / 2022-02-04 | ||
- #[165], (@Apollon77) Catch exceptions thrown by socket send | ||
- (@DABH) Bump dependencies | ||
## v2.4.0 / 2020-01-01 | ||
@@ -4,0 +9,0 @@ |
@@ -166,10 +166,14 @@ /* | ||
_sendChunk(buffer, options, callback) { | ||
this.socket.send( | ||
buffer, | ||
options.offset, | ||
options.length, | ||
options.port, | ||
options.host, | ||
callback | ||
); | ||
try { | ||
this.socket.send( | ||
buffer, | ||
options.offset, | ||
options.length, | ||
options.port, | ||
options.host, | ||
callback | ||
); | ||
} catch (err) { | ||
return callback(err); | ||
} | ||
} | ||
@@ -176,0 +180,0 @@ |
{ | ||
"name": "winston-syslog", | ||
"description": "A syslog transport for winston", | ||
"version": "2.4.4", | ||
"version": "2.5.0", | ||
"author": "Charlie Robbins <charlie.robbins@gmail.com>", | ||
@@ -35,3 +35,3 @@ "contributors": [ | ||
"optionalDependencies": { | ||
"unix-dgram": "2.0.3" | ||
"unix-dgram": "2.0.4" | ||
}, | ||
@@ -43,3 +43,3 @@ "peerDependencies": { | ||
"eslint-config-populist": "^4.2.0", | ||
"sinon": "^8.0.2", | ||
"sinon": "^13.0.1", | ||
"vows": "^0.8.3", | ||
@@ -46,0 +46,0 @@ "winston": "^3.0.0" |
@@ -54,3 +54,3 @@ # winston-syslog | ||
* __port:__ The port on the host that syslog is running on, defaults to syslogd's default port. | ||
* __protocol:__ The network protocol to log over (e.g. `tcp4`, `udp4`, `tls4`, `unix`, `unix-connect`, etc). | ||
* __protocol:__ The network protocol to log over (e.g. `tcp4`, `udp4`, `tls4`, `unix`, `unix-connect`, etc), defaults to `udp4`. | ||
* __protocolOptions:__ Socket connect options. See [`net.socket.connect`](https://nodejs.org/api/net.html#net_socket_connect_options_connectlistener) for available options. | ||
@@ -61,3 +61,3 @@ * __path:__ The path to the syslog dgram socket (i.e. `/dev/log` or `/var/run/syslog` for OS X). | ||
* __localhost:__ Host to indicate that log messages are coming from (Default: `localhost`). | ||
* __type:__ The type of the syslog protocol to use (Default: `BSD`, also valid: `5424`). | ||
* __type:__ The type of the syslog protocol to use (Default: `BSD`, also valid: `'3164'`, `'5424'`, `'RFC3164'` or `'RFC5424'`). | ||
* __app_name:__ The name of the application (Default: `process.title`). | ||
@@ -97,5 +97,5 @@ * __eol:__ The end of line character to be added to the end of the message (Default: Message without modifications). | ||
You will have to configure your syslog server to accept TCP connections. | ||
This is usually done in `/etc/syslog-ng.conf`. Let's say you have an app called `fnord`, | ||
the configuration would look something like this: | ||
You will have to configure your syslog server to accept TCP or UDP connections. | ||
This is usually done in `/etc/syslog-ng.conf`. Let's say you have an app called `fnord` | ||
and want to use TCP, the configuration would look something like this: | ||
@@ -102,0 +102,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36788
917
11