开发者社区> 镜像站> NPM> cnn-logger
cnn-logger
CNN Logger
Last updated 7 months ago by drenter .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install cnn-logger 
SYNC missed versions from official npm registry.

CNN Logger

Replaces console.log() with log.[log-level]() and sends logs to Logz.io.

dependency-status build-status-master build-status-develop npm npm-downloads

Requirements

Read these "requirements" as "only tested with".

Usage

This is intended to be used as a dependency in a larger application. Refer to the example.js that you can run with $ node example/example.js.

ESDoc Documentation

You can generate and view the docs locally with the commands below. The open command will only work on macOS.

$ npm run generate-docs
$ open docs/index.html

NPM scripts

  • generate-authors - Generates AUTHORS.md.
  • generate-changelog - Generates output to put in CHANGELOG.md.
  • generate-docs - Generates ESDoc documentation in /docs.
  • test - Runs all tests.
  • update-apply - Updates package.json with dependency updates.
  • update-check - Outputs if any dependency updates are needed.

Developer notes

  • Always develop on the node version specified in the .nvmrc file. If nvm is used typing nvm install in the terminal will insure the correct version is used.

  • Contributors should be familiar with the Contributors Guide

  • Collaborators should be familiar with the Collaborator Guide

  • The current Project Owner (PO) of this project is Jamie Young (@jamsyoung).

Environment variables

  • LOGZIO_TOKEN - REQUIRED - The token to authenticate to the Logz.io account that the logs should be sent to.

Licensing

See LICENSE.md for details.

Current Tags

  • 2.1.0                                ...           latest (7 months ago)

10 Versions

  • 2.1.0                                ...           7 months ago
  • 2.0.1                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.5.0                                ...           4 years ago
  • 1.4.0                                ...           4 years ago
  • 1.2.1                                ...           4 years ago
  • 1.2.0                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
  • 0.2.0                                ...           5 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (5)