[Lazarus] SQLDBRestBridge

Michael Van Canneyt michael at freepascal.org
Thu Nov 3 10:10:51 CET 2022



On Thu, 3 Nov 2022, duilio foschi via lazarus wrote:

> I could get client and server talk each other.
>
> For the future, it would be nice to have the server (when in debug
> mode) write a log of commands and data exchanged with the client.

This exists already. TRestDispatcherLogOption gives you this.

In fact, there are 2 properties:

     // Logging options
     Property LogOptions : TRestDispatcherLogOptions Read FLogOptions write FLogOptions default DefaultDispatcherLogOptions;
     // SQL Log options. Only for connections managed by RestDispatcher
     Property LogSQLOptions : TDBEventTypes Read FDBLogOptions write FDBLogOptions default DefaultLogSQLOptions;

And add a OnLog event handler.

If you think some extra option is needed, let me know and I will see what I
can do.

Michael.


More information about the lazarus mailing list