Context
Change Type: Improvement
Product area: Analytics
Component: Streaming Analytics
Deployed at: eu.latest.cumulocity.com, apj.cumulocity.com, jp.cumulocity.com, cumulocity.com, 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 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 isWARN. In existing models, theconsole.log,console.info, andconsole.debugoutput of the block is therefore no longer written to the log. To see theconsole.logandconsole.infooutput again, set the Log level parameter toINFO. 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 isINFO, soconsole.debugoutput is not written, even when the parameter is set toDEBUG.DEBUGis intended for testing models locally with the Analytics Builder Block SDK, where you can set the correlator log level yourself.
For details, see Viewing logs in the Streaming Analytics application.