C# console

Hi,
Where can we view the console.writeline from a c# function block?
Is the result logged somewhere or can we see it during debug?
Regards
Alexandre

Not sure if it’s possible to view the console output, but there is the Eclr.Log class that writes to /opt/plcnext/logs/Output.log. That can be viewed live over ssh with tail -f /opt/plcnext/logs/Output.log

Hello Alexandre,
the c# program will be executed by eCLR-Component and the Messages will be logged by Eclr.Log class (see answer from Rob). Please find the eCLR Class Reference (Log Class) in Visual Studio in eCLR-Project: Documentation->eCLR-Programming-Reference.chm
Or as Download in PLCnext InfoCenter:
eCLR Programming System (plcnext.help)download the eCLR-Programming-Reference.chm
BR Eduard

Hello Alexandre,</p>the c# program will be executed by eCLR-Component and the Messages will be logged by Eclr.Log class (see answer from Rob). Please find the eCLR Class Reference (Log Class) in Visual Studio in eCLR-Project: Documentation->eCLR-Programming-Reference.chm</p>Or as Download in PLCnext InfoCenter: </p>[eCLR Programming System (plcnext.help)</a></p>[download the _eCLR-Programming-Reference.chm </em></a></p>BR Eduard</p>

I’m aware of the log class but having Console output allow to use and test piece of code on other target.
In Eclr programming guide it is written than console ouput is supported.
Captureconsole.PNGSo what is the purpose of console class.