Open
Description
I have a situation where I want to activate only the query debug logger while I set up the driver builder. The debug log output that I want to activate is shown in line 135 here:
It would be interesting to have an easy way to access this option for future troubleshooting and to have a better and more transparent point of view of what query is being builded up while developing.
Thanks for the help!
Activity
rashtao commentedon Jul 3, 2020
You can enable debug level for such logger adding the following to your
logback.xml
:Additionally you might want to filter the logged rows using Logback filters: http://logback.qos.ch/manual/filters.html
PauloFerreira25 commentedon Jul 3, 2020
Problems with this approach:
The log is by class and not by function.
If someone ever puts another log in this class, something that does not mean that it is the query will come out.
when the driver proves to be "professional".
Having a flag that turns a driver function on or off is much more professional than simply turning on a debug.
You put in the driver's documentation that this parameter exists, it is quite different from what you put in that the way to use it is to turn on the debugging of an "unknown" class.
rashtao commentedon Jul 13, 2020
Thanks for sharing, we will consider the possibility to implement logging categories in future versions.