---
title: "NestJS Logging"
description: "Learn about integrating Sentry with NestJS logging."
url: https://docs.sentry.io/platforms/javascript/guides/nestjs/features/logging/
last_updated: 2025-12-03T09:51:28.000Z
---

# NestJS Logging for Nest.js

To integrate Sentry logs in your NestJS application, follow the general [logs setup guide](https://docs.sentry.io/platforms/javascript/guides/nestjs/logs.md).

## [Using the Default NestJS Logger](https://docs.sentry.io/platforms/javascript/guides/nestjs/features/logging.md#using-the-default-nestjs-logger)

The default NestJS logger uses `console.log` under the hood. If you're using the default logger, you can use the [`consoleLoggingIntegration`](https://docs.sentry.io/platforms/javascript/guides/nestjs/logs.md#console-logging-integration) to capture console logs.

Note that this only works if you set the `forceConsole` option in the logger:

```typescript
const app = await NestFactory.create(AppModule, {
  logger: new ConsoleLogger({
    forceConsole: true,
  }),
});
```

---

Find other pages: [Sitemap](https://docs.sentry.io/sitemap.md) lists every page with a one-line summary, and [llms.txt](https://docs.sentry.io/llms.txt) gives an overview with guidance for agents.
