nestjs-sentry icon indicating copy to clipboard operation
nestjs-sentry copied to clipboard

Wrong readme.md

Open kasir-barati opened this issue 3 years ago • 1 comments

LogLevel is not exported from the @sentry/types. You have to update it like this:

import { Module } from '@nestjs-common';
import { SentryModule } from '@ntegral/nestjs-sentry';

@Module({
  imports: [
    SentryModule.forRoot({
      dsn: 'sentry_io_dsn',
      debug: true, // boolean
      environment: 'dev', //  | 'production' | 'some_environment'
      release: 'some_release', // | | null must create a release in sentry.io dashboard
      logLevel: ['verbose', 'debug'] //based on sentry.io loglevel
    }),
  ],
})
export class AppModule {}

kasir-barati avatar May 06 '22 09:05 kasir-barati

For me using i.e: logLevels** instead of logLevel worked. Can it be a typo?

josegiron1 avatar Aug 19 '22 15:08 josegiron1