doc.yeswiki.pro/node_modules/@algolia/logger-common/dist/logger-common.esm.js
2023-05-20 19:38:02 +03:00

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 };