How to use the @google-cloud/common.logger function in @google-cloud/common

To help you get started, we’ve selected a few @google-cloud/common examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github googleapis / cloud-debug-nodejs / src / agent / debuglet.js View on Github external
* @private {object} V8 Debug API. This can be null if the Node.js version
   *     is out of date.
   */
  this.v8debug_ = null;

  /** @private {boolean} */
  this.running_ = false;

  /** @private {string} */
  this.project_ = null;

  /** @private {boolean} */
  this.fetcherActive_ = false;

  /** @private {common.logger} */
  this.logger_ = new common.logger({
    level: common.logger.LEVELS[this.config_.logLevel],
    tag: pjson.name
  });

  /** @private {DebugletApi} */
  this.debugletApi_ = new DebugletApi(this.debug_);

  /** @private {Debuggee} */
  this.debuggee_ = null;

  /** @private {Object.<string, Breakpoint>} */
  this.activeBreakpointMap_ = {};

  /** @private {Object.<string, Boolean>} */
  this.completedBreakpointMap_ = {};
github googleapis / cloud-debug-nodejs / src / agent / debuglet.js View on Github external
* @private {object} V8 Debug API. This can be null if the Node.js version
   *     is out of date.
   */
  this.v8debug_ = null;

  /** @private {boolean} */
  this.running_ = false;

  /** @private {string} */
  this.project_ = null;

  /** @private {boolean} */
  this.fetcherActive_ = false;

  /** @private {common.logger} */
  this.logger_ = new common.logger({
    level: common.logger.LEVELS[this.config_.logLevel],
    tag: pjson.name
  });

  /** @private {DebugletApi} */
  this.debugletApi_ = new DebugletApi(this.debug_);

  /** @private {Debuggee} */
  this.debuggee_ = null;

  /** @private {Object.<string, Breakpoint>} */
  this.activeBreakpointMap_ = {};

  /** @private {Object.<string, Boolean>} */
  this.completedBreakpointMap_ = {};