NativeScript / NativeScript/nativescript-cli
[FR] setting loglevel through nsconfig
未关闭
还没有人认领这个 Issue。
device logs
feature
os: ios
- 主要语言
- JavaScript
- 星标
- 1.1k
- 派生
- 204
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 8
描述
I have an issue with the ios run and logging level.
When i run it on my device (need to check on the simulator but i think it is the same) i see a lot of "polluting" logs which makes it almost impossible to see the JS logs:
ay 9 10:21:55 IPhone-Martin Mini2SmartApp(CoreFoundation)[297] <Debug>: Bundle: <private>, key: start_pairing, value: start_pairing, table: Localizable, localizationName: (null), result: start pairing
May 9 10:21:55 IPhone-Martin Mini2SmartApp(CoreFoundation)[297] <Debug>: Bundle: <private>, key: __, value: , table: Localizable, localizationName: (null), result: __
May 9 10:21:55 IPhone-Martin Mini2SmartApp(CoreBluetooth)[297] <Debug>: Sending XPC message <private>: <private>
May 9 10:21:56 IPhone-Martin Mini2SmartApp(CoreBluetooth)[297] <Debug>: Sending XPC message <private>: <private>
May 9 10:21:56 IPhone-Martin Mini2SmartApp(CoreBluetooth)[297] <Debug>: Sending XPC message <private>: <private>
May 9 10:22:11 IPhone-Martin Mini2SmartApp(libsystem_network.dylib)[302] <Info>: nw_endpoint_flow_protocol_connected [3.1 35.231.145.151:443 in_progress socket-flow (satisfied)] Output protocol connected
May 9 10:22:11 IPhone-Martin Mini2SmartApp(libsystem_network.dylib)[302] <Debug>: nw_endpoint_flow_connected_path_change [3.1 35.231.145.151:443 ready socket-flow (satisfied)]
May 9 10:22:11 IPhone-Martin Mini2SmartApp(libsystem_network.dylib)[302] <Info>: nw_endpoint_flow_connected_path_change [3.1 35.231.145.151:443 ready socket-flow (satisfied)] Connected path is satisfied
May 9 10:22:11 IPhone-Martin Mini2SmartApp(libsystem_network.dylib)[302] <Debug>: nw_endpoint_resolver_receive_report [3 gitlab.com:443 in_progress resolver (satisfied)] received child report:[3.1 35.231.145.151:443 ready socket-flow (satisfied)]
May 9 10:22:11 IPhone-Martin Mini2SmartApp(libsystem_network.dylib)[302] <Info>: nw_connection_endpoint_report [3.1 35.231.145.151:443 ready socket-flow (satisfied)] reported event flow:finish_connect
May 9 10:22:11 IPhone-Martin Mini2SmartApp(libsystem_network.dylib)[302] <Info>: nw_connection_endpoint_report [3 gitlab.com:443 ready resolver (satisfied)] reported event flow:finish_connect
May 9 10:22:11 IPhone-Martin Mini2SmartApp(libsystem_network.dylib)[302] <Debug>: __tcp_connection_start_block_invoke 3 sending event TCP_CONNECTION_EVENT_TLS_HANDSHAKE_COMPLETE in response to state ready and error (null)
May 9 10:22:11 IPhone-Martin Mini2SmartApp(libsystem_network.dylib)[302] <Debug>: tcp_connection_event_notify 3 event: TCP_CONNECTION_EVENT_TLS_HANDSHAKE_COMPLETE, reason: nw_connection event, should deliver: true
TIC TCP Conn Event [3:0x17418a690]: 8 Err(0)
I think i actually see all the device logs.
Could we have a way to set the loglevel through nsconfig? Would it filter those?
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先追踪 iOS run command 如何读取 nsconfig 值,以及现有的 loglevel 设置如何应用。确认配置是否可以抑制嘈杂的设备日志,同时不隐藏 JavaScript 日志,然后在设备和模拟器上确认其行为。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- ios, javascript
- 领域
- cli, mobile
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100