The postgres JDBC driver does not use a Java command argument to enable the trace. It uses a flag on the JDBC connection URL like:
jdbc:postgresql://localhost:5432/mydb?loggerLevel=DEBUG
jdbc:postgresql://localhost:5432/mydb?loggerLevel=TRACE&loggerFile=pgjdbc.log
------------------------------
MATTHEW SEGALL
------------------------------