Logging framework or library for NativeScript

ios
android

#1

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?


#2

Checkout this blog, it’s old but should be still valid,


#3

@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


#4

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.


#5

@manojdcoder Thank you for the answer. Will try the same