# कॉन्फ़िगरेशन और विकल्प — Fastify: High-Performance Node.js APIs बनाना

Source: https://www.skillbyai.com/hi/fastify/ff-configuration

> Logger, body limits, request IDs और Pino log levels के साथ Fastify instance configure करें।

## सामान्य विकल्प

Fastify instance बनाते समय logger, body size limits, request ID generation, आदि सेट करें।

```javascript
const fastify = Fastify({
  logger: true,                    // enable logging
  bodyLimit: 1048576,              // 1MB
  disableRequestLogging: false,
  trustProxy: true,                // if behind a reverse proxy
  requestIdLogLabel: 'requestId',
});
```

## Logger levels

pino (बिल्ट-इन logger) levels उपयोग करें: trace, debug, info, warn, error, fatal। `{ logger: { level: 'debug' } }` से सेट करें।
