Home
/
risinglegends.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6eeb75
)
feat: add debug/error methods to logger
author
xangelo
<me@xangelo.ca>
Tue, 5 Sep 2023 15:21:00 +0000
(11:21 -0400)
committer
xangelo
<me@xangelo.ca>
Tue, 5 Sep 2023 15:21:00 +0000
(11:21 -0400)
src/server/lib/logger.ts
patch
|
blob
|
history
diff --git
a/src/server/lib/logger.ts
b/src/server/lib/logger.ts
index c49e6bf9b96355004514bdb9a0b9f88361c9cb4f..1d0759a2bb9a6a055ba4e0d4acb6f4aaa51df286 100644
(file)
--- 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);
+ },
}