mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
23 lines
378 B
JavaScript
23 lines
378 B
JavaScript
'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,
|
|
}
|