react-native-strongly-log
v1.1.1
Published
React Native Log for Android and iOS
Downloads
45
Maintainers
Readme
react-native-strongly-log
React Native Log for Android and iOS
Installation
npm install react-native-strongly-log
yarn add react-native-strongly-log
pnpm i react-native-strongly-logUsage
import StronglyLog from 'react-native-strongly-log';
// ...
记录日志
StronglyLog.info('Hello, World!');
StronglyLog.debug('Hello, World!');
StronglyLog.warn('Hello, World!');
StronglyLog.error('Hello, World!');
清除所有日志记录
await StronglyLog.clearAllLogs()
清除4天前的日志
await StronglyLog.clearOldLogs()
压缩日志文件 返回为压缩后的文件路径字符串
await StronglyLog.zipLogFiles(fileName)
flush日志
await StronglyLog.flush()Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library
