Logs writes the specified diagnostic message at the specified level.
Say for example you are using excel activities to read a excel file and you are keeping a log message activity right after the excel activities mentioning as “EXCEL FILE IS READ SUCCESSFULLY”
now when bot is executed and if you want to validate whether excel file is read successfully or not, you can check the output panel or the execution log files whether the LOG MESSAGE ACTIVITY executed successfully
because if that log message activity is executed it obviously mean excel activity is performed successfully and only then logging has happened
so log message activity can be used as diagnostic message
Log has different levels in it
Trace, Info, Warn, Error and Fatal
so you can keep the level we want and it can be traced accordingly especially when we are debugging the process
Log message activity is only one which will get displayed in OUTPUT panel and also will get saved in EXECUTION LOG FILES and in ORCHESTRATOR Logs if ran from orchestrator
because you may wonder we can use WRITELINE activity to display the diagnostic messages. But the thing is it can be seen only in OUTPUT panel and not in any of the execution log files