How print in console from function

You can't print to the output console because the execution scope is different. Alarm pipelines are executing on the gateway, not the local machine (like the script console).