21 lines
425 B
JavaScript
21 lines
425 B
JavaScript
function createNullLogger() {
|
|
return {
|
|
debug(_message, _args) {
|
|
return Promise.resolve();
|
|
},
|
|
info(_message, _args) {
|
|
return Promise.resolve();
|
|
},
|
|
error(_message, _args) {
|
|
return Promise.resolve();
|
|
},
|
|
};
|
|
}
|
|
|
|
const LogLevelEnum = {
|
|
Debug: 1,
|
|
Info: 2,
|
|
Error: 3,
|
|
};
|
|
|
|
export { LogLevelEnum, createNullLogger };
|