Page 1 of 1

LiteSQLMonitor.OnSql

Posted: Tue 12 Feb 2019 09:48
by starhu
Hello,

My program runs on Android at user side. I need to debug the errors.
I thought that the best way to do it is to write in log file in the event LiteSQLMonitor.OnSql.

However I need to log only the errors.
How can I get only the sql texts with error in the LiteSQLMonitor.OnSql?

Thank you!

Re: LiteSQLMonitor.OnSql

Posted: Fri 15 Feb 2019 14:58
by MaximG
You can use the LiteSQLMonitor component for the implementation of the behavior you need. For this, set the following options:

LiteSQLMonitor.TraceFlags := [tfQExecute, tfError];

When developing your application, you can define a type of the traced operation with help of the Flag: TDATraceFlag parameter of the OnSQL event.

Re: LiteSQLMonitor.OnSql

Posted: Fri 15 Feb 2019 15:17
by starhu
Hi,

Thank you for the answer.

I understand and use LiteSQLMonitor frequently but I don't understand the process, you wrote :

-if the Android program has the LiteSQLMonitor compiled(it has by the way)
-and my customer starts the program on his Android phone 200 km away from me
-then how would I be able to read the errors on his phone?

Thank you!

Re: LiteSQLMonitor.OnSql

Posted: Tue 19 Feb 2019 15:29
by MaximG
The functionality you describe for retrieving any data from the mobile application is not available in our components. To resolve the issue, a separate implementation from the side of the app developer is required.