plane/live/src/core/helpers/logger.ts
M. Palanikannan e1380f52ec
fix: add the redis extension conditionally (#5524)
* fix: add the redis extension conditionally

* chore: import order and stuff

* fix: added logger, error handling and routing

* feat: configured sentry with source maps

* fix: sentry config and returning json

* fix: remove on change logs

* fix: add pretty print
2024-09-05 18:15:46 +05:30

16 lines
248 B
TypeScript

import { pinoHttp } from "pino-http";
const transport = {
target: "pino-pretty",
options: {
colorize: true,
},
};
export const logger = pinoHttp({
level: "info",
transport: transport,
});
export const manualLogger = logger.logger;