I'm using logger option in NestFactory.create() method to control Logger's log levels in production mode, but it's not working with ENV='production', still showing Logger.log() messages
const bootstrap = async () => {
const app = await NestFactory.create<NestExpressApplication>(AppModule, {
logger:
env.ENV == 'development'
? ['debug', 'error', 'log', 'verbose', 'warn']
: ['error', 'warn'],
});
app.enableCors();
app.use(helmet());
app.set('trust proxy', 1);