Socket
Socket
Sign inDemoInstall

winston-logzio

Package Overview
Dependencies
43
Maintainers
3
Versions
28
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.3 to 5.0.4

lib/winston-logzio.d.ts

2

lib/winston-logzio.js

@@ -26,3 +26,3 @@ const Transport = require('winston-transport');

msg = {
message: this.safeToString(infoMessage),
message: this.constructor.safeToString(infoMessage),
};

@@ -29,0 +29,0 @@ } else if (typeof infoMessage === 'string') {

{
"name": "winston-logzio",
"description": "A winston transport wrapper for logzio",
"version": "5.0.3",
"version": "5.0.4",
"author": "Gilly Barr <gilly@logz.io>",
"contributors": [{
"contributors": [
{
"name": "Gilly Barr",

@@ -35,3 +36,3 @@ "email": "gillyb@gmail.com"

"lodash.assign": "4.2.0",
"logzio-nodejs": "^1.0.3",
"logzio-nodejs": "^2.0.1",
"triple-beam": "^1.3.0",

@@ -57,2 +58,2 @@ "winston": "^3.1.0",

}
}
}
![Build Status](https://travis-ci.org/logzio/winston-logzio.svg?branch=master)
# winston-logzio
A Winston transport wrapper for [Logz.io](http://logz.io/)
winston-logzio is a winston plugin and wrapper for the logzio-nodejs appender. With winston-logzio, you can take advantage of the winston logger framework with your Node.js app.
## Versions
Supports Winston 3, If you want to use Winston 2 - Checkout v1.0.8
## Installation
## Add the dependency to your project
```bash

@@ -13,4 +14,5 @@ npm install winston-logzio --save

## Configure winston-logzio
Use the samples in the code block below as a starting point, and replace the sample with a configuration that matches your needs.
## Sample usage
```javascript

@@ -23,3 +25,4 @@ const winston = require('winston');

name: 'winston_logzio',
token: '__YOUR_API_TOKEN__',
token: '<<SHIPPING-TOKEN>>',
host: '<<LISTENER-HOST>>',
});

@@ -36,3 +39,4 @@

Make sure you replace `__YOUR_API_TOKEN__` with your own logz.io api token.<br/>
Make sure you replace `<<SHIPPING-TOKEN>>` with your own logz.io logs shipping token.<br/>
Replace `<<LISTENER-HOST>>` with your region’s listener host (for example, listener.logz.io). For more information on finding your account’s region, see [Account region](https://docs.logz.io/user-guide/accounts/account-region.html).

@@ -39,0 +43,0 @@ If you do not have a [Logz.io](http://logz.io) account, you can sign up for a free trial [here](https://app.logz.io/#/signup)

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc