2021-07-31 15:57:43 +00:00
|
|
|
import pino from "pino";
|
2021-07-18 15:32:45 +00:00
|
|
|
|
|
|
|
const appLogger = pino({
|
|
|
|
level: "debug",
|
|
|
|
base: {
|
|
|
|
env: process.env.NODE_ENV || "NODE_ENV not set",
|
|
|
|
revision: process.env.VERCEL_GITHUB_COMMIT_SHA,
|
|
|
|
},
|
|
|
|
prettyPrint: true,
|
2021-07-31 15:57:43 +00:00
|
|
|
});
|
2021-07-18 15:32:45 +00:00
|
|
|
|
2021-07-31 15:57:43 +00:00
|
|
|
export default appLogger;
|