NativeScript icon indicating copy to clipboard operation
NativeScript copied to clipboard

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

Open NathanWalker opened this issue 3 years ago • 2 comments

PR Checklist

  • [x] The PR title follows our guidelines: https://github.com/NativeScript/NativeScript/blob/master/tools/notes/CONTRIBUTING.md#commit-messages.
  • [x] You have signed the CLA.

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.

NathanWalker avatar Jul 16 '22 21:07 NathanWalker

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

Something like runtimeLogVerbosity and values silent | verbose?

rigor789 avatar Jul 16 '22 21:07 rigor789

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 avatar Jul 18 '22 02:07 NathanWalker