@jenkins-cd/diag
Jenkins client-side diagnostics
Last updated 4 years ago by tfennelly .
MIT · Original npm · Tarball · package.json
$ cnpm install @jenkins-cd/diag 
SYNC missed versions from official npm registry.

Jenkins client-side Diagnostics

Installation

npm install --save @jenkins-cd/diag

logger(category)

Get a LOGGER for the specified category.

var LOGGER = require('@jenkins-cd/diag').logger('sse');
 
// Log messages etc . See below.

error(message [, other-args])

var LOGGER = require('@jenkins-cd/diag').logger('sse');

LOGGER.error('Invalid SSE event message format.', event);

Error logs are always logged, so no configuration needed here.

debug(message [, other-args])

Currently, this module uses the enabled package for logging debug messages.

NOTE: One slight terminology difference between this package and the enabled package is that this package uses the term "category" (log "category") where enabled uses the term "namespace"/"name". Aside from that, everything else is the same.

var LOGGER = require('@jenkins-cd/diag').logger('sse');

LOGGER.debug(`SSE event ${event.jenkins_channel}/${event.jenkins_event}:`, event);

Please see the enabled (and env-variable) docs for how to turn on/off debug logging in the Browser.

isDebugEnabled()

Returns true if debug logging is enabled for the category associated with the logger instance.

Current Tags

  • 0.0.3-tfbeta2                                ...           beta (4 years ago)
  • 0.0.2                                ...           latest (4 years ago)

9 Versions

  • 0.0.3-tfbeta2                                ...           4 years ago
  • 0.0.3-tfbeta1                                ...           4 years ago
  • 0.0.2                                ...           4 years ago
  • 0.0.1                                ...           4 years ago
  • 0.0.1-beta5                                ...           4 years ago
  • 0.0.1-beta4                                ...           4 years ago
  • 0.0.1-beta3                                ...           4 years ago
  • 0.0.1-beta2                                ...           4 years ago
  • 0.0.1-beta1                                ...           4 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |