Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Logging #3558

Merged
merged 16 commits into from
Jan 17, 2023
14 changes: 14 additions & 0 deletions config/logger.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as pino from "pino";

const config = {
transport: {
target: "pino-pretty",
options: {
colorize: true,
},
},
};

const logger = pino(process.env.NODE_ENV === "development" ? config : {});

export default logger;
Loading