Supercellat124578's picture
feat: Add backend application files for HuggingFace space
9de8a4f
raw
history blame contribute delete
257 Bytes
import pino from 'pino';
export const logger = pino({
level: process.env.LOG_LEVEL || 'info',
transport: process.env.NODE_ENV !== 'production'
? { target: 'pino-pretty', options: { colorize: true, translateTime: 'HH:MM:ss' } }
: undefined,
});