fluent-logger
Advanced tools
Comparing version 3.1.0 to 3.2.0
@@ -30,2 +30,3 @@ 'use strict'; | ||
this.tlsOptions = options.tlsOptions || {}; | ||
this.enableReconnect = typeof options.enableReconnect === 'boolean' ? options.enableReconnect : true; | ||
this.reconnectInterval = options.reconnectInterval || 600000; // Default is 10 minutes | ||
@@ -447,3 +448,3 @@ this.requireAckResponse = options.requireAckResponse; | ||
_setupErrorHandler(callback) { | ||
if (!this.reconnectInterval) { | ||
if (!this.reconnectInterval || !this.enableReconnect) { | ||
return; | ||
@@ -450,0 +451,0 @@ } |
{ | ||
"name": "fluent-logger", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"main": "./lib/index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -70,2 +70,13 @@ # fluent-logger for Node.js | ||
### Disable automatic reconnect | ||
Both Singleton and Instance style can disable automatic reconnect allowing the user to handle reconnect himself | ||
```js | ||
logger.configure('tag_prefix', { | ||
host: 'localhost', | ||
port: 24224, | ||
timeout: 3.0, | ||
enableReconnect: false // defaults to true | ||
}); | ||
``` | ||
### Shared key authentication | ||
@@ -72,0 +83,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
118853
1940
369