feat(server): created a logger to catch em all

This commit is contained in:
2025-03-03 17:31:54 -06:00
parent 63cd43acca
commit 275502143c
2 changed files with 54 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ import {OpenAPIHono} from "@hono/zod-openapi";
import {serveStatic} from "@hono/node-server/serve-static";
import {logger} from "hono/logger";
import {cors} from "hono/cors";
import {log} from "./services/logger/logger.js";
// custom routes
import scalar from "./services/general/route/scalar.js";
@@ -63,7 +64,7 @@ serve(
port: Number(process.env.VITE_SERVER_PORT),
},
(info) => {
console.log(`Server is running on http://localhost:${info.port}`);
log.info({username: "LST-SYSTEM"}, `Server is running on http://localhost:${info.port}`);
}
);