1

I'd like to log some values in ReactNative but not to the console or to a file, I'd like to log data to Apple's unified log while I'm running in the iPhone Simulator.

In other words, I'd like to achieve the same as this line in Swift that writes to the log and the data can be inspected in Console.app:

os_log("This is a debug log line")

Is there a way to do that with JavaScript in ReactNative?

1 Answer 1

1

Try this package react-native-os-logger

Sign up to request clarification or add additional context in comments.

1 Comment

Hey, it's pretty simple but this is all I need for now, thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.