> ## Documentation Index
> Fetch the complete documentation index at: https://logixlysia-claude-elysia-v2-open-beta-i2faib.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Log Levels

> Control log verbosity

Control the verbosity of your logging output with Logixlysia's log level system.

## Available Levels

Log levels follow a hierarchy from most to least verbose:

```
DEBUG > INFO > WARNING > ERROR
```

When you set a log level, all higher levels will also be logged. For example, setting the level to `WARNING` will log both `WARNING` and `ERROR` messages.

## Configuration

### Single Level

```ts theme={null}
logixlysia({
  config: {
    logFilter: {
      level: 'ERROR'
    }
  }
})
```

### Multiple Levels

```ts theme={null}
logixlysia({
  config: {
    logFilter: {
      level: ['INFO', 'ERROR']
    }
  }
})
```

### Environment-based

```ts theme={null}
logixlysia({
  config: {
    logFilter: {
      level: process.env.NODE_ENV === 'production' 
        ? ['ERROR', 'WARNING']
        : ['DEBUG', 'INFO', 'WARNING', 'ERROR']
    }
  }
})
```

## Pino Log Levels

When using Pino integration, you can also configure Pino's log levels:

```ts theme={null}
logixlysia({
  config: {
    pino: {
      level: 'debug' // 'fatal', 'error', 'warn', 'info', 'debug', 'trace'
    }
  }
})
```

## Best Practices

* **Development**: Use `DEBUG` for detailed debugging
* **Staging**: Use `INFO` for normal operation
* **Production**: Use `WARNING` or `ERROR` for normal operation
* **Monitoring**: Set up alerts for `ERROR` level

## Example Configurations

### Development

```ts theme={null}
logFilter: {
  level: ['DEBUG', 'INFO', 'WARNING', 'ERROR']
}
```

### Production

```ts theme={null}
logFilter: {
  level: ['WARNING', 'ERROR']
}
```

### Monitoring

```ts theme={null}
logFilter: {
  level: ['ERROR']
}
```
