@bahatron/logger
event based logger
Last updated 17 days ago by bahatron .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @bahatron/logger 
SYNC missed versions from official npm registry.

Logger

import {createLogger} from "@bahatron/logger"

let myLogger = createLogger({
    debug: false,
    id: "my logger id",
});

myLogger.on("error", context => {
    // webhook to slack
    // webhook to sentry/bugsnag
    // do your thing
});

myLogger.error("warning", {foo: "bar"});

Current Tags

  • 3.0.0                                ...           latest (17 days ago)

21 Versions

  • 3.0.0                                ...           17 days ago
  • 2.0.3                                ...           a month ago
  • 2.0.2                                ...           2 months ago
  • 2.0.1                                ...           2 months ago
  • 2.0.0                                ...           2 months ago
  • 1.2.3                                ...           2 months ago
  • 1.2.2                                ...           3 months ago
  • 1.2.1                                ...           3 months ago
  • 1.2.0                                ...           3 months ago
  • 1.1.9                                ...           3 months ago
  • 1.1.8                                ...           3 months ago
  • 1.1.7                                ...           3 months ago
  • 1.1.6                                ...           3 months ago
  • 1.1.5                                ...           3 months ago
  • 1.1.4                                ...           4 months ago
  • 1.1.3                                ...           4 months ago
  • 1.1.2                                ...           4 months ago
  • 1.1.0                                ...           4 months ago
  • 1.0.3                                ...           4 months ago
  • 1.0.2                                ...           4 months ago
  • 1.0.1                                ...           4 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 21
Last Month 66
Dependencies (2)
Dev Dependencies (6)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |