import { serve } from "@hono/node-server";import { Hono } from "hono";import { logger as loggerMiddleware } from "hono/logger";import pino from "pino";const app = new Hono();const logger = pino({ transport: { target: "pino-pretty", options: { colorize: true, }, }, level: "trace",});export const customLogger = (message: string, ...rest: string[]) => { logger.info(message, ...rest);};app.use(loggerMiddleware(customLogger));app.get("/", (c) => { logger.info("hello"); return c.text("Hello Hono!");});const port = 3000;console.log(`Server is running on port ${port}`);serve({ fetch: app.fetch, port,});