UNPKG

react-native-priv-sdk

Version:

Official MyCover.ai SDK. Supercharge your product with MyCover AI Insurance offerings. Create embedded insurance offerings or full white label insurance applications that excite your customers.

35 lines (31 loc) 749 B
// @ts-nocheck // @ts-nocheck import { consoleTransport, logger } from 'react-native-logs'; const InteractionManager = require('react-native').InteractionManager; const customLog: any = logger.createLogger({ levels: { debug: 0, info: 1, warn: 2, error: 3, }, severity: 'debug', transport: consoleTransport, transportOptions: { colors: { debug: 'greenBright', info: 'blueBright', warn: 'yellowBright', error: 'redBright', }, }, async: true, asyncFunc: InteractionManager.runAfterInteractions, dateFormat: 'time', printLevel: true, printDate: true, fixedExtLvlLength: false, enabled: true, }); // Export the logger so it can be used in other files export default customLog;