Creates a writable stream for pino(stream): every NDJSON line pino writes becomes a record sent through client. Lines that are not JSON are sent as the body of an INFO record.
pino(stream)
client
const log = pino(createPinoTransport(client)); Copy
const log = pino(createPinoTransport(client));
Creates a writable stream for
pino(stream): every NDJSON line pino writes becomes a record sent throughclient. Lines that are not JSON are sent as the body of an INFO record.