-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogger.ts
More file actions
20 lines (19 loc) · 548 Bytes
/
logger.ts
File metadata and controls
20 lines (19 loc) · 548 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
export type LogParams = null | any;
export const DefaultLogger = {
silly: (...params: LogParams): void => {},
debug: (...params: LogParams): void => {
console.log(new Date(), params);
},
notice: (...params: LogParams): void => {
console.log(new Date(), params);
},
info: (...params: LogParams): void => {
console.info(new Date(), params);
},
warning: (...params: LogParams): void => {
console.error(new Date(), params);
},
error: (...params: LogParams): void => {
console.error(new Date(), params);
},
};