NativeScript / NativeScript/nativescript-cli

[FR] setting loglevel through nsconfig

Ouverte
#4,603 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

device logs feature os: ios
Langage dominant
JavaScript
Étoiles
1.1k
Forks
204
Merge moyen
1 j 9 h
PR mergées (30 j)
8

Description

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?

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Piste de recherche

Commencez par retracer comment les valeurs de nsconfig sont lues par la iOS run command et comment le paramètre loglevel existant est appliqué. Vérifiez si la configuration peut supprimer les logs bruyants de l’appareil sans masquer les logs JavaScript, puis confirmez le comportement sur un appareil et dans le simulateur.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
ios, javascript
Domaine
cli, mobile
Type d'issue
Fonctionnalité
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.