winston-logzio
Advanced tools
Comparing version 5.0.2 to 5.0.3
@@ -55,2 +55,10 @@ const Transport = require('winston-transport'); | ||
} | ||
close(cb) { | ||
this.finish(() => { | ||
this.emit('finish'); | ||
this.emit('close'); | ||
if (cb) cb(); | ||
}); | ||
} | ||
}; |
{ | ||
"name": "winston-logzio", | ||
"description": "A winston transport wrapper for logzio", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"author": "Gilly Barr <gilly@logz.io>", | ||
@@ -6,0 +6,0 @@ "contributors": [{ |
@@ -39,2 +39,4 @@ ![Build Status](https://travis-ci.org/logzio/winston-logzio.svg?branch=master) | ||
**Note:** If winston-logzio is used as part of a serverless service (AWS Lambda, Azure Functions, Google Cloud Functions, etc.), add `logger.close()` at the end of the run. | ||
## Details | ||
@@ -41,0 +43,0 @@ This winston plugin, basically just wraps our [nodejs logzio shipper](https://github.com/logzio/logzio-nodejs).<br/> |
10478
244
53