Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

下載了jdonMVC+CQRS+ES,如何輸出SQL到控制台呢? #2

Closed
CaryGao opened this issue Mar 21, 2013 · 1 comment
Closed

下載了jdonMVC+CQRS+ES,如何輸出SQL到控制台呢? #2

CaryGao opened this issue Mar 21, 2013 · 1 comment

Comments

@CaryGao
Copy link

CaryGao commented Mar 21, 2013

Hi,

請問我如何才能將SQL的語句輸出到控制臺呢?現在做一些研究,改了些代碼,看不到實際的SQL,有點麻煩。

@banq
Copy link
Owner

banq commented Mar 22, 2013

调试可以用Eclipse的断点跟踪。
Jdon将日志输出默认导出到log4j2中,只要配置log4j2.xml,如下
https://github.com/banq/jdonframework/blob/master/src/log4j2.xml

在src\META-INF\log.xml中,

可以将6设为1,log4j设置为false,不使用log4j直接输出后台

如果你自己使用log4j输出自己的代码,也要配置log4j.xml

以上几种办法供参考

@banq banq closed this as completed Sep 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants