Is there any logging framework/library supported by NativeScript which is work well in both Android and iOS? Or does the logging framework supported by Angular hold good for NativeScript too?
Checkout this blog, it’s old but should be still valid,
@manojdcoder Thanks for your suggestion, but isn’t the trace module log to the console? I am actually looking for something which can log to a file
Please read the full article,
trace.addWriter(YourWritterClass) can be used to add your own writer that may write the logs to file or send it to server, anything you like to do.
You also have categorized logs support, so you can filter logs you want to write to file.