Socket
Socket
Sign inDemoInstall

fluent-logger

Package Overview
Dependencies
Maintainers
4
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fluent-logger - npm Package Compare versions

Comparing version 3.1.0 to 3.2.0

3

lib/sender.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc