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

内核参考typeorm的日志功能,实现我们自己的日志功能 #43

Closed
yinlianghui opened this issue Apr 28, 2019 · 0 comments
Closed

Comments

@yinlianghui
Copy link
Contributor

yinlianghui commented Apr 28, 2019

参考:https://typeorm.io/#/logging/

  • 看看是不是有可能能直接调用typeorm的相关类及函数
  • 关系型数据库设置了logging参数后,typeorm会自动打日志
  • 对于mongodb,我们最好能实现typeorm类型的日志逻辑,比如开放了logging参数后,自动打印每个数据库连接操作对应的查询条件及参数等,比如find的时候打印出monodb的查询条件
  • 对于其他内核层,需要提供相关日志函数供调用,函数内部自动识别logging参数执行打印日志功能,比如trigger可以调用该函数自动根据logging的级别输出相关日志
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