diff --git a/packages/prerender-fargate/.gitignore b/packages/prerender-fargate/.gitignore index ec769510..14559189 100644 --- a/packages/prerender-fargate/.gitignore +++ b/packages/prerender-fargate/.gitignore @@ -1 +1 @@ -!lib/prerender/* +!lib/prerender/** diff --git a/packages/prerender-fargate/lib/prerender/utils/logger.js b/packages/prerender-fargate/lib/prerender/utils/logger.js new file mode 100644 index 00000000..61e3d599 --- /dev/null +++ b/packages/prerender-fargate/lib/prerender/utils/logger.js @@ -0,0 +1,20 @@ +"use strict"; + +const pino = require("pino"); + +module.exports = pino({ + base: undefined, + timestamp: false, + messageKey: "message", + customLevels: { + render: 35, + }, + level: process.env.LOG_LEVEL || "info", + formatters: { + level: label => { + return { + level: label, + }; + }, + }, +});