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

feat(config): logRuntimeDetail to enable verbose platform runtime logs #9959

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

NathanWalker
Copy link
Contributor

@NathanWalker NathanWalker commented Jul 16, 2022

PR Checklist

What is the current behavior?

No way to view verbose details around platform runtime calls.

What is the new behavior?

The nativescript.config has a new boolean logRuntimeDetail which can enable verbose platform runtime calls. This can reveal platform marshaling calls your app is making as well as reveal detail regarding classes and methods being invoked on the target platform runtime.

Relies on this runtime commit to engage.

@cla-bot cla-bot bot added the cla: yes label Jul 16, 2022
@rigor789
Copy link
Member

Could we do a string-based setting instead of a boolean?

Something like runtimeLogVerbosity and values silent | verbose?

@NathanWalker
Copy link
Contributor Author

NathanWalker commented Jul 18, 2022

Could we do a string-based setting instead of a boolean?

Something like runtimeLogVerbosity and values silent | verbose?

Good idea. Perhaps it could be an Array, for example:

runtimeLogVerbosity: ['interop', 'metadata']
or...
runtimeLogVerbosity: ['all']

runtimeLogVerbosity: Array<'all' | 'silent' | 'interop' | 'metadata'>

We could add support for more in future.

That way you could isolate areas or mix/match different detail or just view all.

@NathanWalker NathanWalker added this to the 8.4 milestone Jul 25, 2022
@rigor789 rigor789 marked this pull request as draft July 27, 2022 09:10
@NathanWalker NathanWalker modified the milestones: 8.4, 8.5 Nov 24, 2022
@NathanWalker NathanWalker modified the milestones: 8.5, 9.0 Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants