Flink doesn't provide a JDBC connector that polls an external DB at regular intervals, so we can't really help with this.
There are 3rd party JDBC source connectors that offer this functionality, but you'd have to check their docs or code to see what sort of logging they provide.