logs: add ISO timestamp to all log output

This commit is contained in:
Julien Calixte
2026-02-15 08:59:37 +01:00
parent 562a3b061f
commit efb78ff14e
3 changed files with 13 additions and 7 deletions

View File

@@ -1,6 +1,7 @@
import { Application, Router } from "@oak/oak";
import { deleteNote, getNotes, getNotesByDid } from "./src/data/db.ts";
import { authenticateRequest } from "./src/auth/verify.ts";
import { log } from "./src/log.ts";
const router = new Router();
@@ -60,5 +61,5 @@ app.use(async (ctx, next) => {
app.use(router.routes());
app.use(router.allowedMethods());
console.log("[server] listening on port 8080");
log("[server] listening on port 8080");
app.listen({ port: 8080 });