Is there a way to get a "query log" out of H2, like you can with e.g. MySQL? The closest match so far is the TRACE_LEVEL_FILE option, but it it not good for debugging the individual queries, especially when they have variable parameters like most do.
相关问题
- NOT DISTINCT query in mySQL
- Flush single app django 1.9
- I want to trace logs using a Macro multi parameter
- Error message 'No handlers could be found for
- convert logback.xml to log4j.properties
相关文章
- 小型数据库(SQLite,Derby,H2)可以存储多少数据?
- how do I log requests and responses for debugging
- Connection pooling vs persist connection mysqli
- Android Studio doesn't display logs by package
- Stacktrace does not print in Glassfish 4.1 Cluster
- Out of curiosity — why don't logging APIs impl
- Laravel log file based on date
- Java -How to get logger to work in shutdown hook?
The
TRACE_LEVEL_FILE
is the best option. There are 4 levels:So I guess 2 would be the right level in your case.
There is also a simple way to analyze the trace file, documented in Database Profiling.