engsshi / react-native-xlog Goto Github PK
View Code? Open in Web Editor NEWWeCha's xlog for react-native. Xlog is a reliable log component with high-performance.
License: MIT License
WeCha's xlog for react-native. Xlog is a reliable log component with high-performance.
License: MIT License
I integrated it and it produced me 2 files:
Both files are binary and cannot be viewed my any text editor.
So how can I access and view these log files?
license?
Originally posted by @EngsShi in #30 (comment)
平台:iOS
RN: 0.57.8
react: 16.8.3
mars:用的最新的,重新打了个framework
有个场景,产生了大量的日志数据:首先,启动项目,command+D,选择debugger模式,然后点击示例中的crash,(可以根据xcode控制台那边的路径找到日志文件)产生日志文件,之后,将服务关闭,此时可以看到日志文件一直在增大,解压之后,发现都是
[F][2019-05-10 +8.0 20:17:35.356][0, 105553120254336][log][FMXXlog.mm, setRCTLog, 131][2019-05-10 20:17:35.357 [fatal][tid:com.facebook.react.WebSocketExecutor] Runtime is not ready for debugging. Make sure Packager server is running.
这样的报错,每毫秒都产生一条,几十秒之内,日志文件都快破10M了
想请问一下又什么方法可以debugger模式下,不捕获的异常
Build failed with the following error:
* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
> Could not find com.tencent.mars:mars-xlog:1.0.1.
/node_modules/react-native-xlog/ios/XLogForRN/Util/LogHelper.h:23:9: 'mars/xlog/xloggerbase.h' file not found
#import <mars/xlog/xloggerbase.h>
^
▸ Compiling XLogCrashHandler.mm
** BUILD FAILED **
//开启日志管理模块
> XLog.open();
> XLog.installUncaughtCrashHandler();
初始化上述模块的时候,出现警告信息:
TypeError: XLogBridge.installUncaughtCrashHandler is not a function
TypeError: XLogBridge.installUncaughtCrashHandler is not a function
并且在XLogModule.java中也没有看到installUncaughtCrashHandler 方法
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.