Colab User
Initial commit: Deploy rasa-engine API server
eab050b
raw
history blame contribute delete
421 Bytes
import pino from "pino";
const isProduction = process.env.NODE_ENV === "production";
export const logger = pino({
level: process.env.LOG_LEVEL ?? "info",
redact: [
"req.headers.authorization",
"req.headers.cookie",
"res.headers['set-cookie']",
],
...(isProduction
? {}
: {
transport: {
target: "pino-pretty",
options: { colorize: true },
},
}),
});