Disable system log in TNS 4 console
See original GitHub issueHello,
I’am using NativeScript Vue for developing my app, however, since upgrading to TNS 4, the tns console output log is too much verbose with system logging messages. Is there any way to disable all these logs and print only application level logs ?
Every time I run the app, it’s impossible to see my debug log since there are a lot of system logs, for example:
AVAudioSession.mm:323:HandleRouteChange: Posting AVAudioSessionRouteChangeNotification. Reason: 3 0x10293e818 - UIProcess is releasing a foreground assertion because the view is no longer visible 0x10b944210 - ProcessThrottler::updateAssertion() sending PrepareToSuspend IPC 0x1c4a6ab80 - ProcessAssertion::setState(1) 0x10b944000 - WebProcessProxy::didSetAssertionState(Background) taking background assertion for network process 0x10b940138 - ProcessThrottler::updateAssertionNow() updating process assertion state to 1 (foregroundActivities: 0, backgroundActivities: 1) 0x1c4a6a980 - ProcessAssertion::setState(1) 0x10b944210 - ProcessThrottler::updateAssertionNow() updating process assertion state to 0 (foregroundActivities: 0, backgroundActivities: 0) 0x1c4a6ab80 - ProcessAssertion::setState(0) 0x10b944000 - WebProcessProxy::didSetAssertionState(Suspended) release all assertions for network process 0x10b940138 - ProcessThrottler::updateAssertion() sending PrepareToSuspend IPC 0x10b940138 - ProcessThrottler::updateAssertionNow() updating process assertion state to 0 (foregroundActivities: 0, backgroundActivities: 0) 0x1c4a6a980 - ProcessAssertion::setState(0) 0x1c4854640 - WKProcessAssertionBackgroundTaskManager - endBackgroundTask 0x10b944210 - ProcessThrottler::updateAssertionNow() updating process assertion state to 1 (foregroundActivities: 0, backgroundActivities: 1) 0x1c4a6ab80 - ProcessAssertion::setState(1) 0x1c4854640 - WKProcessAssertionBackgroundTaskManager - beginBackgroundTaskWithName 0x10b944000 - WebProcessProxy::didSetAssertionState(Background) taking background assertion for network process 0x10b940138 - ProcessThrottler::updateAssertionNow() updating process assertion state to 1 (foregroundActivities: 0, backgroundActivities: 1) 0x1c4a6a980 - ProcessAssertion::setState(1) 0x10b944000 - WebProcessProxy::didSetAssertionState(Background) taking background assertion for network process 0x10b944000 - WebProcessProxy::didSetAssertionState(Background) taking background assertion for network process 0x10b944000 - WebProcessProxy::didSetAssertionState(Background) taking background assertion for network process 0x10b944000 - WebProcessProxy::didSetAssertionState(Background) taking background assertion for network process 0x10b944000 - WebProcessProxy::didSetAssertionState(Background) taking background assertion for network process 0x10b944000 - WebProcessProxy::didSetAssertionState(Background) taking background assertion for network process 0x10b944210 - ProcessThrottler::updateAssertion() sending PrepareToSuspend IPC 0x10b944000 - WebProcessProxy::didSetAssertionState(Background) taking background assertion for network process 0x10b944000 - WebProcessProxy::didSetAssertionState(Background) taking background assertion for network process 0x10b944000 - WebProcessProxy::didSetAssertionState(Background) taking background assertion for network process 0x10b944000 - WebProcessProxy::didSetAssertionState(Background) taking background assertion for network process 0x10b944000 - WebProcessProxy::didSetAssertionState(Background) taking background assertion for network process 0x10b944000 - WebProcessProxy::didSetAssertionState(Background) taking background assertion for network process 0x10b944000 - WebProcessProxy::didSetAssertionState(Background) taking background assertion for network process 0x10b944000 - WebProcessProxy::didSetAssertionState(Background) taking background assertion for network process 0x10b944000 - WebProcessProxy::didSetAssertionState(Background) taking background assertion for network process
Issue occurs since TNS 4.0
- Both iOS/Android
To recreate the issue
- Execute command
tns [run|debug] [ios|andorid]
for any NativeScript project.
Thank you for any help.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:14
Top GitHub Comments
The only workaround I have so far is to manually edit
ios-log-filter.js
by adding additional filtering conditions:This is obviously a hack (and still misses a ton of system logs), but at least (for now) I can filter out the noisiest system logs so I can see more of my own.
EDIT:
This works better…
I’m having the same issue, @speigg @GrEg00z where is the ios-log-filter.js file located?