---
title: max_level
summary: Returns the current maximum log level.
url: https://www.fastly.com/documentation/reference/compute/sdks/cpp/fastly/log/fn.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#L413

```cpp
LogLevelFilter fastly::log::max_level()
```

Returns the current maximum log level.

The maximum log level is set by the [`set_max_level()`](https://www.fastly.com/documentation/reference/compute/sdks/cpp/fastly/log/fn.set_max_level/) function.

**Returns**

`LogLevelFilter`
