How to use the log-driver.logger.debug function in log-driver

To help you get started, we’ve selected a few log-driver 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 badges / shielded / lib / shield.js View on Github external
fs.readFile(__dirname + "/shield.svg", function(err, contents){
    if (err){ 
      return cb(err);
    }
    contents = contents.toString();
    var svgFileName = tempdir + '/' + getUniqueId(vendorText, statusText, color, 1) + '.svg';
        // scale value is irrelevant for svg, so just set it to a constant 1
    logger.debug("contents: ", contents);
    logger.debug("svg file: ", svgFileName);
    var svgFileStream = fs.createWriteStream(svgFileName);
    contents.split('||').forEach(function(piece){
      switch(piece){
        case 'vendor' : 
          piece = vendorText;
        break;
        case 'status' : 
          piece = statusText;
        break;
        case 'color' : 
          piece = color;
        break;
      }
      svgFileStream.write(piece);
    });
github badges / shielded / lib / shield.js View on Github external
fs.readFile(__dirname + "/shield.svg", function(err, contents){
    if (err){ 
      return cb(err);
    }
    contents = contents.toString();
    var svgFileName = tempdir + '/' + getUniqueId(vendorText, statusText, color, 1) + '.svg';
        // scale value is irrelevant for svg, so just set it to a constant 1
    logger.debug("contents: ", contents);
    logger.debug("svg file: ", svgFileName);
    var svgFileStream = fs.createWriteStream(svgFileName);
    contents.split('||').forEach(function(piece){
      switch(piece){
        case 'vendor' : 
          piece = vendorText;
        break;
        case 'status' : 
          piece = statusText;
        break;
        case 'color' : 
          piece = color;
        break;
      }
      svgFileStream.write(piece);
    });
    svgFileStream.end();

log-driver

log-driver is a simple logging framework for logging to stdout

ISC
Latest version published 7 years ago

Package Health Score

62 / 100
Full package analysis