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能不能设置一下换行,如果很长的sql看日志的时候需要拉很长才能找到,按照一定格式进行换行最好! #68

Open
linglongchen opened this issue Dec 6, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@linglongchen
Copy link

image

@catchex
Copy link
Member

catchex commented Dec 7, 2020

1)日志打印是可以通过 Logger 和LoggerFactory 进行扩展,因为format SQL 也是需要计算成本的,框架本身不能提供标准的格式化方法

2)框架可以提供一个示例,由使用者自行决定是否需要格式化

@catchex catchex self-assigned this Dec 7, 2020
@catchex catchex added the enhancement New feature or request label Dec 7, 2020
@yeongher
Copy link
Contributor

yeongher commented Dec 7, 2020

SQL Format 还是比较消耗性能的,不建议格式化,最多在调试的时候通过参数设置,生产系统时,没必要增加

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

No branches or pull requests

3 participants