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

Added sql log printing function to DataSource plugin #9510

Closed
The-Gamer-01 opened this issue Nov 8, 2022 · 2 comments
Closed

Added sql log printing function to DataSource plugin #9510

The-Gamer-01 opened this issue Nov 8, 2022 · 2 comments
Assignees
Labels
kind/enhancement Category issues or prs related to enhancement. plugin
Milestone

Comments

@The-Gamer-01
Copy link
Contributor

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
DataSource plugin need to provide sql log printing function.
多数据源插件需要提供SQL日志打印功能

Describe the solution you'd like
A clear and concise description of what you want to happen.
Use the configuration file method to selectively open the data-source plugin SQL log print function
利用配置文件的方式选择性开启多数据源插件SQL日志打印功能

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Use AspectJ to implement the cutting log print
利用AspectJ实现切面日志打印

Additional context
Add any other context or screenshots about the feature request here.

@The-Gamer-01
Copy link
Contributor Author

@i will solve it@

The-Gamer-01 added a commit to The-Gamer-01/nacos that referenced this issue Nov 8, 2022
The-Gamer-01 added a commit to The-Gamer-01/nacos that referenced this issue Nov 8, 2022
The-Gamer-01 added a commit to The-Gamer-01/nacos that referenced this issue Nov 9, 2022
The-Gamer-01 added a commit to The-Gamer-01/nacos that referenced this issue Nov 9, 2022
@The-Gamer-01
Copy link
Contributor Author

现在大概使用JDK动态代理实现了,现在默认是关闭状态,若需要开启,则需要将application.properties中此处注释去掉即可生效;
image
生效效果如下:
image

The-Gamer-01 added a commit to The-Gamer-01/nacos that referenced this issue Nov 9, 2022
@KomachiSion KomachiSion added plugin kind/enhancement Category issues or prs related to enhancement. labels Nov 10, 2022
@KomachiSion KomachiSion added this to the 2.2.0 milestone Nov 10, 2022
The-Gamer-01 added a commit to The-Gamer-01/nacos that referenced this issue Nov 10, 2022
li-xiao-shuang pushed a commit that referenced this issue Nov 11, 2022
* [ISSUE #9510]Add sql log print function.

* [ISSUE #9510]Remove AspectJ and add sql proxy.

* [ISSUE #9510]Update data source plugin log.

* [ISSUE #9510]Update args log.

* [ISSUE #9510]Add unit test.
@KomachiSion KomachiSion modified the milestones: 2.2.0, 2.2.1 Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Category issues or prs related to enhancement. plugin
Projects
None yet
Development

No branches or pull requests

2 participants