sanity
Version:
Sanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches
13 lines (10 loc) • 305 B
text/typescript
import debug from 'debug'
const rootName = 'scheduled-publishing:'
export default debug(rootName)
export function debugWithName(name: string): debug.Debugger {
const namespace = `${rootName}${name}`
if (debug && debug.enabled(namespace)) {
return debug(namespace)
}
return debug(rootName)
}