1. Can you give us some pointers on how to add our own diagnostics using the DiagnosticsLog component.
2. We have tried enabling the Log4net publisher within our automation. We enable debug log level in RuntimeConfig.xml.. And we see some messages like "session completed" when the automation completes. We would like to listen to these kind of events without switching the log at debug level. Any thoughts?
3) We also see some "hbeat" kind of parameters in diagnostics. Can we use this ? Will this give what we want? Or is there any alternative to this?.
You can write out to your own log file but I think the recommended route is to use the already existing logging. I would recommend using the FilePublisher (RuntimeLog.txt) and not Log4Net. With the component, you can specify the level of logging that you want the message to output as. There are 4 levels. If you edit the RuntimeConfig, you can do a Find/Replace for "3 to "4 to set it to verbose (highest logging) or keep it as default. You can experiment with it to see what information you want from it.