mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 08:13:56 +10:00
28 lines
527 B
TypeScript
28 lines
527 B
TypeScript
import { pino } from 'pino';
|
|
|
|
// const transports: TransportTargetOptions[] = [];
|
|
|
|
// if (env('NEXT_PRIVATE_LOGGING_DEV')) {
|
|
// transports.push({
|
|
// target: 'pino-pretty',
|
|
// level: 'info',
|
|
// });
|
|
// }
|
|
|
|
// const loggingFilePath = env('NEXT_PRIVATE_LOGGING_FILE_PATH');
|
|
|
|
// if (loggingFilePath) {
|
|
// transports.push({
|
|
// target: 'pino/file',
|
|
// level: 'info',
|
|
// options: {
|
|
// destination: loggingFilePath,
|
|
// mkdir: true,
|
|
// },
|
|
// });
|
|
// }
|
|
|
|
export const logger = pino({
|
|
level: 'info',
|
|
});
|