debug() #
Logs a message with the debug level.
debug(message: string, ...args: any[]): void
debug(object: object, message?: string, ...args: any[]): void| Argument | Type | Description |
|---|---|---|
message | string | Message to log. Extra args are interpolated into it with pino placeholders (%s, %d, %o) |
object | object | Properties added to the log line. An Error is logged under the err key, and its message is used when message is omitted |
Usage #
app.log.debug('Something is happening');
app.log.debug({ userId: 'aschen' }, 'User %s logged in', 'aschen');