MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / log

Function log

tests/snippet-validation.test.cjs:58–67  ·  view source on GitHub ↗
(message, type = 'info')

Source from the content-addressed store, hash-verified

56
57// Logging utilities
58function log(message, type = 'info') {
59 const colors = {
60 info: '\x1b[0m',
61 success: '\x1b[32m',
62 error: '\x1b[31m',
63 warning: '\x1b[33m',
64 dim: '\x1b[2m'
65 };
66 console.log(`${colors[type]}${message}\x1b[0m`);
67}
68
69// Cache management utilities
70function loadCache() {

Callers 5

loadCacheFunction · 0.70
saveCacheFunction · 0.70
validateSnippetFunction · 0.70
runTestsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected