Files
clube67_newwhats.local/clube67/newwhats.local/backend/src/config/logger.ts
T
VPS 4 Deploy Agent 0dc5eefa06
continuous-integration/webhook Falha no deploy de clube67_newwhats.local (VPS 4)
chore(ops): restore missing root files in newwhats.clube67.com
2026-05-18 03:27:25 +02:00

11 lines
304 B
TypeScript

import pino from 'pino'
import { env } from './env'
export const logger = pino({
level: env.NODE_ENV === 'production' ? 'info' : 'debug',
transport:
env.NODE_ENV !== 'production'
? { target: 'pino-pretty', options: { colorize: true, translateTime: 'SYS:standard' } }
: undefined,
})