From: xangelo Date: Tue, 5 Sep 2023 15:21:00 +0000 (-0400) Subject: feat: add debug/error methods to logger X-Git-Tag: v0.3.3~6 X-Git-Url: https://git.xangelo.ca/?a=commitdiff_plain;h=32389654d7acc630d524a157881069712e1822b5;p=risinglegends.git feat: add debug/error methods to logger --- diff --git a/src/server/lib/logger.ts b/src/server/lib/logger.ts index c49e6bf..1d0759a 100644 --- a/src/server/lib/logger.ts +++ b/src/server/lib/logger.ts @@ -1,5 +1,11 @@ export const logger = { + debug: (...args: any | any[]) => { + console.debug(...args); + }, log: (...args: any | any[]) => { console.log(...args); - } + }, + error: (...args: any | any[]) => { + console.error(...args); + }, }