doc.yeswiki.pro/node_modules/@algolia/logger-common/dist/logger-common.esm.js

22 lines
425 B
JavaScript
Raw Normal View History

2023-05-20 16:37:42 +00:00
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 };