Writing to Log_General

Writing to Log_General

  
Hi,

I need to log some information from within my Outsystems application. I would like to use some existing tool instead of creating and writing to my own table. Log_General seems to be a good candidate but I have got a single unresolved issue: how to obtain the proper value of the Cycle column? I understand that when a real oslog_General_<n> table is used, the value of Cycle must be <n> but it doesn't answer my question.

Can anybody hint me, what to do?

Regards
Tomasz
why not use Audit action?

As J. hinted, 

To write to the General Log simply use the built-in Audit action from your System reference. It's what it does :)

Takes care of all the nastiness of determining which table to write on and all that. Just provide it with a message and a module (for grouping related messages) and you're good to go.

Hi,

Thanks. It was not obvious that Audit writes to the General Log...

Regards
Tomasz