---
title: "NestJS Logging"
description: "Learn about integrating Sentry with NestJS logging."
url: https://docs.sentry.io/platforms/javascript/guides/nestjs/features/logging/
---

# NestJS Logging | Sentry 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,
  }),
});
```
