# October 22, 2026 - New Log level parameter for the Smart Function block

**URL:** <https://community.cumulocity.com/t/october-22-2026-new-log-level-parameter-for-the-smart-function-block/15294>\
**Category:** Analytics\
**Tags:** Improvement, analytics, streaming-analytics\
**Created:** [October 23, 2026, 7:16am UTC](https://community.cumulocity.com/t/october-22-2026-new-log-level-parameter-for-the-smart-function-block/15294 "2026-10-23T07:16:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cumulocity](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/cumulocity/32/31990_2.png) [@cumulocity](https://community.cumulocity.com/u/cumulocity)\
**Post date:** [October 23, 2026, 7:16am UTC](https://community.cumulocity.com/t/october-22-2026-new-log-level-parameter-for-the-smart-function-block/15294/1 "2026-10-23T07:16:21Z")

</div>

## Context

* * *

**Change Type:** Improvement  
**Product area:** Analytics  
**Component:** Streaming Analytics  
**Deployed at:** [eu.latest.cumulocity.com](http://eu.latest.cumulocity.com), [apj.cumulocity.com](http://apj.cumulocity.com), [jp.cumulocity.com](http://jp.cumulocity.com), [cumulocity.com](http://cumulocity.com), [us.cumulocity.com](http://us.cumulocity.com)

> **Technical details**
>
> **Build artifact:** apama-in-c8y (27.228.0)  
> **Internal ID:** PAB-5353

## Description

* * *

To keep the log of the Apama-ctrl microservice readable, you can now control how much `console` output the [Smart Function](https://cumulocity.com/docs/streaming-analytics/block-reference/#smart-function) block writes to the log. The block, which is in Public Preview, has a new **Log level** parameter with the values `OFF`, `ERROR`, `WARN`, `INFO`, and `DEBUG`.

> **Important**  
> The default is `WARN`. In existing models, the `console.log`, `console.info`, and `console.debug` output of the block is therefore no longer written to the log. To see the `console.log` and `console.info` output again, set the **Log level** parameter to `INFO`. Uncaught errors are always written.

> **Info**  
> The **Log level** parameter cannot make the block write more detailed output than the log level of the correlator allows. In Cumulocity, the microservice log level is `INFO`, so `console.debug` output is not written, even when the parameter is set to `DEBUG`. `DEBUG` is intended for testing models locally with the [Analytics Builder Block SDK](https://cumulocity-iot.github.io/apama-analytics-builder-block-sdk/), where you can set the correlator log level yourself.

For details, see [Viewing logs in the Streaming Analytics application](https://cumulocity.com/docs/streaming-analytics/troubleshooting/#logs-view).
