MCPcopy
hub / github.com/fastify/fastify / CustomLoggerImpl

Class CustomLoggerImpl

test/types/logger.tst.ts:44–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44class CustomLoggerImpl implements CustomLogger {
45 level = 'info'
46 customMethod (msg: string, ...args: unknown[]) { console.log(msg, args) }
47
48 // Implementation signature must be compatible with all overloads of FastifyLogFn
49 info (arg1: unknown, arg2?: unknown, ...args: unknown[]): void {
50 console.log(arg1, arg2, ...args)
51 }
52
53 warn (...args: unknown[]) { console.log(args) }
54 error (...args: unknown[]) { console.log(args) }
55 fatal (...args: unknown[]) { console.log(args) }
56 trace (...args: unknown[]) { console.log(args) }
57 debug (...args: unknown[]) { console.log(args) }
58 silent (...args: unknown[]) { }
59
60 child (bindings: P.Bindings, options?: P.ChildLoggerOptions): CustomLoggerImpl { return new CustomLoggerImpl() }
61}
62
63const customLogger = new CustomLoggerImpl()
64

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…