nestjs-sentry
nestjs-sentry copied to clipboard
Wrong readme.md
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 {}
For me using i.e: logLevels** instead of logLevel worked. Can it be a typo?