Logging with Prisma v7
Hey all, given Prisma v7 now requires we use adapters when connecting to a database (see here - https://www.prisma.io/docs/orm/more/upgrade-guides/upgrading-versions/upgrading-to-prisma-7#driver-adapters-and-client-instantiation), how do we continue to use logging via emitted events i.e. the example here https://www.prisma.io/docs/orm/prisma-client/observability-and-logging/logging ? The
stdout option works fine (outputs logs to stdout), but it seems like the below example snippet from the docs no longer works i.e. doesn't trigger an event and then console.log output. As a result, it's no longer possible to have a custom logger.Learn how to configure Prisma Client to log the raw SQL queries it sends to the database and other information.
