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

sql日志的打印 #3191

Closed
hujun-e opened this issue Jul 4, 2024 · 1 comment
Closed

sql日志的打印 #3191

hujun-e opened this issue Jul 4, 2024 · 1 comment
Labels

Comments

@hujun-e
Copy link

hujun-e commented Jul 4, 2024

MyBatis version

3.5.9

Steps to reproduce

String logId = id; if (configuration.getLogPrefix() != null) { logId = configuration.getLogPrefix() + id; } mappedStatement.statementLog = LogFactory.getLog(logId);
当前获取日志对象使用的全限定名+方法名
image
全限定名+方法名导致在idea中无法通过点击类名快速定位到目标类

Expected result

使用类的全限定名作为日志传参

Actual result

类的全限定名+方法名传参

@harawata
Copy link
Member

harawata commented Jul 4, 2024

Hello @hujun-e ,

Fully qualified name + method name allows users to fine-tune logging levels for each statement.
So, we are not going to change that.

Closing as won't fix.

p.s.
Please use English in our projects. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants