MCPcopy
hub / github.com/node-cron/node-cron / Logger

Interface Logger

src/logger.ts:8–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6 * (per task) to route node-cron logs through your application's logger.
7 */
8export interface Logger {
9 info(message: string): void;
10 warn(message: string): void;
11 error(message: string | Error, err?: Error): void;
12 debug(message: string | Error, err?: Error): void;
13}
14
15const levelColors: Record<LogLevel, string> = {
16 INFO: '\x1b[36m', // Cyan

Callers 21

logFunction · 0.80
logger.tsFile · 0.80
logger.test.tsFile · 0.80
logFunction · 0.80
logger.tsFile · 0.80
logger.test.tsFile · 0.80
heartBeatMethod · 0.80
constructorMethod · 0.80
logEventMethod · 0.80
scheduleFunction · 0.80
logFunction · 0.80
logger.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected