feat(server): created a logger to catch em all
This commit is contained in:
@@ -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}`);
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user