> For the complete documentation index, see [llms.txt](https://utca.knowledgator.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://utca.knowledgator.com/structural-components/log.md).

# Log

Logs message and current data

Subclass of [**Component**](/core/component.md).

## Module: [core](/framework-structure.md#core)

## Methods and properties

Main methods and properties

***

### <mark style="color:blue;">\_\_init\_\_</mark>

#### Arguments:

* <mark style="color:orange;">**level**</mark>**&#x20;(int, optional):** [Logging level](https://docs.python.org/3/library/logging.html#logging-levels). Defaults to [**logging**](https://docs.python.org/3/library/logging.html)**.**[**NOTSET**](https://docs.python.org/3/library/logging.html#logging.NOTSET).
* <mark style="color:orange;">**logger**</mark>**&#x20;(Optional\[**[**logging**](https://docs.python.org/3/library/logging.html)**.**[**Logger**](https://docs.python.org/3/library/logging.html#logger-objects)**], optional):** Logger object. If value eqaules to None, evaluator logger will be used. Defaults to None.
* <mark style="color:orange;">**message**</mark>**&#x20;(str, optional):** Message that will be logged. Defaults to "".
* <mark style="color:orange;">**open**</mark>**&#x20;(str, optional):** String that will be inserted before mesage(new line). Defaults to "-"\*40.
* <mark style="color:orange;">**close**</mark>**&#x20;(str, optional):** String that will be inserted after mesage(new line). Defaults to "-"\*40.
* <mark style="color:orange;">**include\_input\_data**</mark>**&#x20;(bool, optional):** Include data representation in log. Defaults to True.
* <mark style="color:orange;">**name**</mark>**&#x20;(Optional\[str], optional):** Name for identification. If equals to None, class name will be used. Defaults to None.

***

### <mark style="color:blue;">execute</mark>

Create message string

#### Arguments:

* <mark style="color:orange;">**input\_data**</mark>**&#x20;(Any):** Data for representation.

#### Returns:

* **str:** Message for logging.

***

***
