LiteSQLMonitor.OnSql

Discussion of open issues, suggestions and bugs regarding LiteDAC (SQLite Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
starhu
Posts: 34
Joined: Thu 13 Aug 2009 12:13

LiteSQLMonitor.OnSql

Post by starhu » Tue 12 Feb 2019 09:48

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!

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: LiteSQLMonitor.OnSql

Post by MaximG » Fri 15 Feb 2019 14:58

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.

starhu
Posts: 34
Joined: Thu 13 Aug 2009 12:13

Re: LiteSQLMonitor.OnSql

Post by starhu » Fri 15 Feb 2019 15:17

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!

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: LiteSQLMonitor.OnSql

Post by MaximG » Tue 19 Feb 2019 15:29

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.

Post Reply