Implement logger on pusher

This commit is contained in:
Alexis Faizeau 2021-11-08 19:05:25 +01:00
parent 6a195be814
commit dd89f12c2e
15 changed files with 263 additions and 72 deletions

View file

@ -1,4 +1,6 @@
// lib/server.ts
import App from "./src/App";
import { PUSHER_HTTP_PORT } from "./src/Enum/EnvironmentVariable";
App.listen(PUSHER_HTTP_PORT, () => console.log(`WorkAdventure starting on port ${PUSHER_HTTP_PORT}!`))
import log from "./src/Services/Logger";
App.listen(PUSHER_HTTP_PORT, () => log.info(`WorkAdventure starting on port ${PUSHER_HTTP_PORT}!`));