logs: add ISO timestamp to all log output
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user