---
title: set_max_level
summary: Set the global maximum log level.
url: https://www.fastly.com/documentation/reference/compute/sdks/cpp/fastly/log/fn.set_max_level/
---

**Kind:** Function  
**Module:** [log](https://www.fastly.com/documentation/reference/compute/sdks/cpp/fastly/log/)  
**Package:** compute-sdk-cpp 0.7.0  
**Source:** https://github.com/fastly/compute-sdk-cpp/blob/ff911e47be2f319e83a9cde960d2c3c5db534280/include/fastly/log.h#L408

```cpp
void fastly::log::set_max_level(LogLevelFilter level)
```

Set the global maximum log level.

**Parameters**

- `level`: `LogLevelFilter`

**Returns**

`void`
