React Native:是否有一种方法可以获取console.logs保存到设备上的日志文件?
在我的React Native应用程序中,我希望能够拿起所有控制台并丢弃错误,并将其保存到运行该应用程序的设备上的日志文件中,以便用户可以检索并向我发送文件。有办法这样做吗?
In my React Native app, I want to be able to take all the console.logs and thrown errors and have them saved to a log file on the device running the app, so that the user can retrieve and send me the file. Is there a way to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在您的应用上实施 Sentry 日志跟踪系统。
You can implement Sentry log tracking system on your app.