Thursday, February 15, 2024
HomeiOS Developmentswift - Writing logs to file IOS

swift – Writing logs to file IOS


We’ve got a requirement the place we wish to write logs in a file and add to server. We are attempting to attain the identical utilizing OSLog framework in IOS , however going through some challenges. There’s a brand new API supplied by OSLog referred to as OSLogStore which I believe can be utilized to entry logs on gadget, however with some limitations I consider.

We’re in a position to learn/write logs in customized file for present course of after studying from OSLogStore. However in different situation the place there’s a crash or consumer quits the app, and log isn’t written into customized file but then on subsequent boot OSLogStore is not going to learn logs from final boot. Appears it all the time take a contemporary object occasion.

So, is there any approach we are able to learn the logs from final boot? Or every other approach we are able to write logs to file and share with backend with out utilizing third get together framework.



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments