Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

553 B
Raw Blame
import { pino } from 'pino'

/**
 * Structured JSON logger. Cloud Run ingests stdout JSON lines natively;
 * `severity` is mapped so log levels surface correctly in Cloud Logging.
 */
export const logger = pino({
  level: process.env.LOG_LEVEL ?? 'info',
  base: { service: 'hood-alerts' },
  formatters: {
    level(label) {
      const severity =
        { trace: 'DEBUG', debug: 'DEBUG', info: 'INFO', warn: 'WARNING', error: 'ERROR', fatal: 'CRITICAL' }[
          label
        ] ?? 'DEFAULT'
      return { level: label, severity }
    },
  },
})