Simple code example for the logging of lambda requests
npm install @public.firetail.io/firetail-js-lambdaThe purpose of this module is to correctly log out the AWS Lambda event and response payload to allow the firetail extension to then send it on to the firetail logging api
  
The  is a function that wraps around an event handler function in a AWS Lambda to extract the event and response payloads into a base64 logging message.
Implementing Middleware in lambda function
``js
import * as firetailWrapper from '@public.firetail.io/firetail-js-lambda'
module.exports.myFn = firetailWrapper((event,context) => {
// do work here..
return {
statusCode:200,
body: JSON.stringify(data)
};
});
``