init
This commit is contained in:
29
node_modules/@anthropic-ai/mcpb/dist/shared/log.js
generated
vendored
Normal file
29
node_modules/@anthropic-ai/mcpb/dist/shared/log.js
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
export function getLogger({ silent = false } = {}) {
|
||||
return {
|
||||
log: (...args) => {
|
||||
if (!silent) {
|
||||
console.log(...args);
|
||||
}
|
||||
},
|
||||
error: (...args) => {
|
||||
if (!silent) {
|
||||
console.error(...args);
|
||||
}
|
||||
},
|
||||
warn: (...args) => {
|
||||
if (!silent) {
|
||||
console.warn(...args);
|
||||
}
|
||||
},
|
||||
info: (...args) => {
|
||||
if (!silent) {
|
||||
console.info(...args);
|
||||
}
|
||||
},
|
||||
debug: (...args) => {
|
||||
if (!silent) {
|
||||
console.debug(...args);
|
||||
}
|
||||
},
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user