[英]How to get log result from sql in Quarkus?
I want to get result from HQL and It show.我想从 HQL 中得到结果并显示出来。 I try search but I don't found relative article
我尝试搜索但没有找到相关文章
Hibernate:
select
customer0_.id as id1_5_,
customer0_.CREATE_TIME as create_t2_5_,
customer0_.CREATE_TIME_UNIX as create_t3_5_,
customer0_.UPDATE_TIME as update_t4_5_,
customer0_.UPDATE_TIME_UNIX as update_t5_5_,
customer0_.business_registration_number as business6_5_,
customer0_.company as company7_5_,
customer0_.country as country8_5_,
customer0_.currency as currency9_5_,
customer0_.description as descrip10_5_,
customer0_.email as email11_5_,
customer0_.mobile as mobile12_5_,
customer0_.name as name13_5_,
customer0_.status as status14_5_,
customer0_.telephone as telepho15_5_
from
customer customer0_
where
customer0_.email=? limit ?
{"timestamp":"2022-12-22T11:10:13.753+07:00","sequence":3029,"loggerClassName":"org.jboss.logging.Logger","loggerName":"com.secui.filters.LoggingInterceptor","level":"INFO","message":"Result: com.secui.models.Customer","threadName":"executor-thread-0","threadId":272,"mdc":{},"ndc":"","hostName":"thaonv","processName":"quarkus1-dev.jar","processId":19940}
Expect it shows: enter image description here期待它显示:在此处输入图像描述
You can add the following in the application.properties quarkus.log.category."org.hibernate".level=DEBUG您可以在 application.properties 中添加以下内容 quarkus.log.category."org.hibernate".level=DEBUG
This will enable you to look at the queries, parameters been passed and also the results.这将使您能够查看查询、传递的参数以及结果。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.