logzen-node
LOGZEN Node.js client
Last updated a year ago by logzen .
ISC · Original npm · Tarball · package.json
$ cnpm install logzen-node 
SYNC missed versions from official npm registry.

LOGZEN - Improve your logs management, and be proud of your application!

LOGZEN is a new generation logs management system, which simplify the logging between platforms and apps. logzen.io

Installation

npm install --save logzen-node

Integration

const logzen = require('logzen-node');
const transport = new logzen.transports.HTTPS('API-KEY');
logzen.install(transport);

Basic logging

console.log("My log message");
console.info("My info message");
console.warn("My warning message");
console.error("My error message");

Custom parameters

logzen.log("My log message", { a: "b", c: "d" });

Integration with express

app.use(logzen.middlewares.express.requestMiddleware());

// Put all your express definitions here

app.use(logzen.middlewares.express.errorMiddleware());

Current Tags

  • 2.0.0                                ...           latest (a year ago)

5 Versions

  • 2.0.0                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 2
Dependencies (7)
Dev Dependencies (16)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |