chore: scaffold turbo monorepo with hono api and react admin web

This commit is contained in:
Jose Selesan
2026-10-15 15:24:34 -03:00
commit 2b1d2152c4
89 changed files with 4996 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
import { pino } from 'pino'
const isProduction = process.env.NODE_ENV === 'production'
/**
* Single logger instance for the whole API. Import it wherever you need to log —
* never use `console.log` in the backend.
*/
export const logger = pino({
level: process.env.LOG_LEVEL ?? (isProduction ? 'info' : 'debug'),
...(isProduction
? {}
: {
transport: {
target: 'pino-pretty',
options: { colorize: true, translateTime: 'HH:MM:ss', ignore: 'pid,hostname' },
},
}),
})
export type Logger = typeof logger