MCPcopy Create free account
hub / github.com/esmBot/esmBot / log

Function log

src/utils/logger.ts:61–63  ·  view source on GitHub ↗
(type: string, content: string | Error | object | unknown | null)

Source from the content-addressed store, hash-verified

59}
60
61export function log(type: string, content: string | Error | object | unknown | null) {
62 return content ? logger.log(type === "log" ? "main" : type, content) : logger.info(type);
63}
64
65export function info(args: string | Error | object | unknown) {
66 return log("info", args);

Callers 6

loadFunction · 0.90
sendFunction · 0.90
infoFunction · 0.70
errorFunction · 0.70
warnFunction · 0.70
debugFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected