---
title: Robot Framework configuration
description: Configuration for Allure Robot Framework
---

# Allure Robot Framework configuration

Allure Robot Framework's behavior in regard to log messages (such as [`logging.info()`](https://docs.python.org/3/library/logging.html#logging.Logger.info) calls) can be controlled by the `ALLURE_MAX_STEP_MESSAGE_COUNT` environment variable. The variable must be an integer number. When unset, the variable defaults to zero.

- When the total number of log messages that occurred during a keyword execution is greater than `ALLURE_MAX_STEP_MESSAGE_COUNT`, Allure Robot Framework will present them as an [attachment](/docs/robotframework-reference/#attachments). This is usually the preferred behavior for tests that produce a lot of logs that you only occasionally need to read through. Since the default value of `ALLURE_MAX_STEP_MESSAGE_COUNT` is zero, this behavior is used for all keywords by default.

- For keywords that produced fewer log messages than `ALLURE_MAX_STEP_MESSAGE_COUNT`, Allure Robot Framework will present each message as an individual [sub-step](/docs/robotframework-reference/#test-steps). This is usually the preferred behavior for tests that produce few messages that can be analyzed at a glance.

Tip:
You can use [test plans](/docs/robotframework/#select-tests-via-a-test-plan-file) to run different sets of tests at a time. This way, you will be able to set a different value of `ALLURE_MAX_STEP_MESSAGE_COUNT` before each run if necessary.
