I tried differents things but I can't make it work...
I still need help...
I've seen examples with the jdbcplus driver from apache. With this example in mind, I think you're putting the SQL at the wrong param-element. Try using a name attribute
sqlinstead. Furthermore URL shouldn't be written with capitals.
I am not using this way of logging. I've created a specific log class and send every log to an log-processor which is called with an async-event. after persisting it logs with the default logger (depending on the log-level). This doesn't work for system specific logs (such as Hibernate) but gives me better control over the persistency proces. In this way I give preference to database access for the application and store the logs with a lower priority.