MCPcopy Index your code
hub / github.com/TanStack/router / createLogger

Function createLogger

packages/start-plugin-core/src/utils.ts:5–14  ·  view source on GitHub ↗
(prefix: string)

Source from the content-addressed store, hash-verified

3}
4
5export function createLogger(prefix: string) {
6 const label = `[${prefix}]`
7 return {
8 log: (...args: any) => console.log(label, ...args),
9 debug: (...args: any) => console.debug(label, ...args),
10 info: (...args: any) => console.info(label, ...args),
11 warn: (...args: any) => console.warn(label, ...args),
12 error: (...args: any) => console.error(label, ...args),
13 }
14}

Callers 2

prerenderFunction · 0.90
buildSitemapFunction · 0.90

Calls 5

logMethod · 0.65
debugMethod · 0.65
infoMethod · 0.65
warnMethod · 0.65
errorMethod · 0.65

Tested by

no test coverage detected