forked from LeoLucaNexsoft/react-native-file-log
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
25 lines (22 loc) · 661 Bytes
/
index.js
File metadata and controls
25 lines (22 loc) · 661 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { NativeModules } from 'react-native';
const { RNReactLogging } = NativeModules;
export default {
printLog: function (content: string) {
RNReactLogging.printLog(content);
},
setTag: function (tag: string) {
RNReactLogging.setTag(tag);
},
setConsoleLogEnabled: function (enabled: boolean) {
RNReactLogging.setConsoleLogEnabled(enabled);
},
setFileLogEnabled: function (enabled: boolean) {
RNReactLogging.setFileLogEnabled(enabled);
},
setMaxFileSize: function (size: number) {
RNReactLogging.setMaxFileSize(size);
},
listAllLogFiles: function (): Promise {
return RNReactLogging.listAllLogFiles();
},
};