Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Hummer Cli 命令行支持显示端运行日志 #1

Open
1 task done
duanlikang opened this issue Jan 20, 2021 · 2 comments
Open
1 task done

Hummer Cli 命令行支持显示端运行日志 #1

duanlikang opened this issue Jan 20, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@duanlikang
Copy link
Collaborator

duanlikang commented Jan 20, 2021

功能请求

  • 我想要完成此功能

您的功能请求是否与一个问题有关?

我有一个问题,现在Hummer 日志在开发时,不容易查看,需要依赖 Xcode 或者 Android Studio,需要提供新的日志查看方式。
描述您希望的解决方案
通过Hummer Cli 建立 Socket 通信,实现端上的日志通信,展示到命令行中。
描述您考虑过的备选方案.
暂无
文档、适配、迁移策略

hummer dev启动时,自动开启日志通信服务,实时在命令行中展示。

@duanlikang duanlikang added good first issue Good for newcomers enhancement New feature or request labels Jan 20, 2021
@duanlikang duanlikang self-assigned this Jan 20, 2021
@duanlikang
Copy link
Collaborator Author

duanlikang commented Apr 22, 2021

Socket 协议
端发动 Log 信息 send:

{
  type: 'log',
  data: {
     level: 1, // Log Level:log 1, debug 2, info 3, warn 4, error 5
     message: '' // Log Message
  }

}

@duanlikang
Copy link
Collaborator Author

duanlikang commented Apr 22, 2021

需要考虑使用 Chameleon 开发 Hummer 的场景,将 Log 的 Dev 能力支持提供独立的插件,注册到 Hummer CLI 中。

Chameleon 的项目具有独立 WebSocket 服务,端上需要链接特定端口的 WebSocket,暂定端口号是 39340 @bbssyyuui @ChasonTang

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants