Comparing version 2.2.2 to 2.2.3
{ | ||
"name": "abslog", | ||
"version": "2.2.2", | ||
"version": "2.2.3", | ||
"description": "An abstract logger - Enables adding logging to modules without adding a dependency to a full log library. ", | ||
"main": "lib/log.js", | ||
"directories": { | ||
"lib": "lib" | ||
}, | ||
"files": [ | ||
"lib" | ||
], | ||
"scripts": { | ||
@@ -26,2 +26,3 @@ "test": "tap test/*.js", | ||
"roarr", | ||
"logdna", | ||
"synclog", | ||
@@ -48,2 +49,3 @@ "logging", | ||
"roarr": "^2.11.2", | ||
"logdna": "^2.1.1", | ||
"synclog": "^1.0.1" | ||
@@ -50,0 +52,0 @@ }, |
# abslog | ||
[![Dependencies](https://img.shields.io/david/trygve-lie/abslog.svg?style=flat-square)](https://david-dm.org/trygve-lie/abslog)[![Build Status](http://img.shields.io/travis/trygve-lie/abslog/master.svg?style=flat-square)](https://travis-ci.org/trygve-lie/abslog) [![Greenkeeper badge](https://badges.greenkeeper.io/trygve-lie/abslog.svg)](https://greenkeeper.io/) | ||
[![Dependencies](https://img.shields.io/david/trygve-lie/abslog.svg?style=flat-square)](https://david-dm.org/trygve-lie/abslog) | ||
[![Build Status](http://img.shields.io/travis/trygve-lie/abslog/master.svg?style=flat-square)](https://travis-ci.org/trygve-lie/abslog) | ||
[![Greenkeeper badge](https://badges.greenkeeper.io/trygve-lie/abslog.svg?style=flat-square)](https://greenkeeper.io/) | ||
[![Known Vulnerabilities](https://snyk.io/test/github/trygve-lie/abslog/badge.svg?targetFile=package.json&style=flat-square)](https://snyk.io/test/github/trygve-lie/abslog?targetFile=package.json) | ||
@@ -214,3 +217,15 @@ An abstract logger - Enables adding logging to modules without adding a dependency to a full log library. This way, the consumer of your modules can plug in their own log library of choice. | ||
### LogDna | ||
[LogDna](https://www.npmjs.com/package/logdna) is found to be compatible. | ||
```js | ||
const abslog = require('abslog'); | ||
const LogDna = require('logDna') | ||
const log = abslog(Logdna.createLogger('some_api_key_goes_here', {})); | ||
log.info('hello'); | ||
``` | ||
## License | ||
@@ -217,0 +232,0 @@ |
10025
253
11