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

WIP: feat: first implement logger #143

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

WIP: feat: first implement logger #143

wants to merge 1 commit into from

Conversation

popomore
Copy link
Member

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)
Description of change

@@ -0,0 +1,7 @@
export interface ILogger {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ILogger 是不是单独发一个 npm 包?像 layotto js-sdk 其实不感知 tegg 的存在的。

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

那是不是把 zlogger 这个库改造下,把 egg-logger 的一些实现放过去

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

最好就是纯 interface 定义,这样依赖都可以不添加。https://github.com/layotto/js-sdk/blob/main/src/client/Client.ts#L79

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

对啊,正常还是可以依赖一个 logger 的,现在只是没有承载。

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

Successfully merging this pull request may close these issues.

2 participants