UNPKG

serverless

Version:

Serverless Framework - Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more

23 lines (18 loc) 386 B
'use strict'; const logger = console; function getMarkers(functionName) { return { start: `--- START ${functionName} ---`, end: `--- END ${functionName} ---`, }; } function log(functionName, message) { const markers = getMarkers(functionName); logger.log(markers.start); logger.log(message); logger.log(markers.end); } module.exports = { getMarkers, log, };