First upload version 0.0.1
This commit is contained in:
20
node_modules/@octokit/webhooks/dist-src/create-logger.js
generated
vendored
Normal file
20
node_modules/@octokit/webhooks/dist-src/create-logger.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
const createLogger = (logger = {}) => {
|
||||
if (typeof logger.debug !== "function") {
|
||||
logger.debug = () => {
|
||||
};
|
||||
}
|
||||
if (typeof logger.info !== "function") {
|
||||
logger.info = () => {
|
||||
};
|
||||
}
|
||||
if (typeof logger.warn !== "function") {
|
||||
logger.warn = console.warn.bind(console);
|
||||
}
|
||||
if (typeof logger.error !== "function") {
|
||||
logger.error = console.error.bind(console);
|
||||
}
|
||||
return logger;
|
||||
};
|
||||
export {
|
||||
createLogger
|
||||
};
|
||||
Reference in New Issue
Block a user