> For the complete documentation index, see [llms.txt](https://vostok.gitbook.io/logging/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vostok.gitbook.io/logging/how-to-guides/transforming-events.md).

# Transforming events

**Prerequisites**:

* Install [abstractions module](/logging/modules/abstractions.md)
* Read about general log [configuration practices](/logging/configuration.md)
* Read about [log interface](/logging/concepts/log-interface.md)
* Read about [log events](/logging/concepts/log-events.md)

Transforming extensions allows a particular `ILog` instance to modify some of incoming log events.

### Transform log level

Transform log levels of incoming log events according to provided mapping:

```csharp
log = log.WithLevelsTransformation(
    new Dictionary<LogLevel, LogLevel>
    {
        [LogLevel.Error] = LogLevel.Warn,
        [LogLevel.Fatal] = LogLevel.Warn
    });
```

Transform error log level of incoming log events to warning level:

```csharp
log = log.WithErrorsTransformedToWarns();
```
