How to use the lambda-log.options function in lambda-log

To help you get started, we’ve selected a few lambda-log 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 NativeDocuments / docx-to-pdf-on-AWS-Lambda / lambda / index.js View on Github external
var AWS = require('aws-sdk');
var s3 = new AWS.S3();
var config = require('./configure');
var helper = require('./helper');

const log = require('lambda-log');

const Format = require("@nativedocuments/docx-wasm/formats");

// ND_LICENSE_URL, or ND_DEV_ID and ND_DEV_SECRET are read from environment
// If using the S3 trigger, S3_BUCKET_OUTPUT should be set there as well
// See README for more details

//  debug messages?  
if (process.env.DEPLOY_ENV !== 'PROD') {
    log.options.debug = true;
}

 // The use case for this app is to output PDF.  
 // But if your use case is binary .doc to docx conversion,
 // change this to Format.DOCX 
var outputAs = Format.PDF;

var srcBucket;
var srcKey;

var dstBucket; 
var dstKey; 

var INITIALISED = false;

lambda-log

Lightweight logging library for any Node 10+ applications

MIT
Latest version published 3 years ago

Package Health Score

50 / 100
Full package analysis