[Log] Add better logging and a logger

This commit is contained in:
Aaro Koivukangas
2026-10-11 19:19:42 +03:00
parent 42f274b394
commit 0b04905cc5
5 changed files with 53 additions and 5 deletions
+2 -1
View File
@@ -1,8 +1,9 @@
import { createApp } from './app';
import { DATA_DIR, PORT } from './config';
import { log } from './log';
const server = createApp().listen(PORT, () => {
console.log(`WorkH listening on http://localhost:${PORT} (data: ${DATA_DIR})`);
log.info(`WorkH listening on http://localhost:${PORT} (data: ${DATA_DIR})`);
});
// Exit promptly when Kubernetes / Docker stops the container.