mirror of
https://github.com/gosticks/plane.git
synced 2025-10-16 12:45:33 +00:00
* 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
16 lines
248 B
TypeScript
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;
|