trace() #
Logs a message with the trace level.
trace(message: string, ...args: any[]): void
trace(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.trace('Something is happening');
app.log.trace({ userId: 'aschen' }, 'User %s logged in', 'aschen');