> **Version 8** — **React** / **TypeScript**
> Also available:
- `?language=js` for JavaScript
- `?codeOnly=true` for code snippets only
- other versions: Version 10.3 (latest) (`/docs/api/main-config/main-config-log-level.md`), Version 9 (`/docs/9/api/main-config/main-config-log-level.md`)

# logLevel

Parent: [main.js|ts configuration](./main-config.mdx)

Type: `'debug' | 'error' | 'info' | 'trace' | 'warn'`

Default: `'info'`

Configures Storybook's logs in the browser terminal. Useful for debugging.

```ts
// .storybook/main.ts
// Replace your-framework with the framework you are using (e.g., react-webpack5, vue3-vite)

const config: StorybookConfig = {
  framework: '@storybook/your-framework',
  stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
  logLevel: 'debug',
};

export default config;
```