winston-logzio
Advanced tools
Comparing version 5.0.3 to 5.0.4
@@ -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) |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
10954
10
57
239
1
+ Addedaxios@1.7.0(transitive)
+ Addedfollow-redirects@1.15.6(transitive)
+ Addedform-data@4.0.0(transitive)
+ Addedlogzio-nodejs@2.1.7(transitive)
+ Addedmoment@2.29.4(transitive)
+ Addedproxy-from-env@1.1.0(transitive)
- Removedajv@6.12.6(transitive)
- Removedasn1@0.2.6(transitive)
- Removedassert-plus@1.0.0(transitive)
- Removedaws-sign2@0.7.0(transitive)
- Removedaws4@1.12.0(transitive)
- Removedbcrypt-pbkdf@1.0.2(transitive)
- Removedbluebird@3.7.2(transitive)
- Removedcaseless@0.12.0(transitive)
- Removedcore-util-is@1.0.2(transitive)
- Removeddashdash@1.14.1(transitive)
- Removedecc-jsbn@0.1.2(transitive)
- Removedextend@3.0.2(transitive)
- Removedextsprintf@1.3.0(transitive)
- Removedfast-deep-equal@3.1.3(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedforever-agent@0.6.1(transitive)
- Removedform-data@2.3.3(transitive)
- Removedgetpass@0.1.7(transitive)
- Removedhar-schema@2.0.0(transitive)
- Removedhar-validator@5.1.5(transitive)
- Removedhttp-signature@1.2.0(transitive)
- Removedis-typedarray@1.0.0(transitive)
- Removedisstream@0.1.2(transitive)
- Removedjsbn@0.1.1(transitive)
- Removedjson-schema@0.4.0(transitive)
- Removedjson-schema-traverse@0.4.1(transitive)
- Removedjsprim@1.4.2(transitive)
- Removedlodash@4.17.21(transitive)
- Removedlogzio-nodejs@1.0.7(transitive)
- Removedmoment@2.30.1(transitive)
- Removedoauth-sign@0.9.0(transitive)
- Removedperformance-now@2.1.0(transitive)
- Removedpsl@1.9.0(transitive)
- Removedpunycode@2.3.1(transitive)
- Removedqs@6.5.3(transitive)
- Removedrequest@2.88.2(transitive)
- Removedrequest-promise@4.2.6(transitive)
- Removedrequest-promise-core@1.1.4(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsshpk@1.18.0(transitive)
- Removedstealthy-require@1.1.1(transitive)
- Removedtough-cookie@2.5.0(transitive)
- Removedtunnel-agent@0.6.0(transitive)
- Removedtweetnacl@0.14.5(transitive)
- Removeduri-js@4.4.1(transitive)
- Removeduuid@3.4.0(transitive)
- Removedverror@1.10.0(transitive)
Updatedlogzio-nodejs@^2.0.1