react-native-obd-retriver
Version:
A React Native hook library to manage Bluetooth Low Energy connections and communication with ELM327 OBD-II adapters.
2 lines • 1.28 kB
JavaScript
Object.defineProperty(exports,"__esModule",{value:true});exports.log=void 0;var _reactNativeBeautifulLogs=require("react-native-beautiful-logs");(0,_reactNativeBeautifulLogs.initSessionLog)().catch(function(error){console.error('Failed to initialize logging session:',error);});var log=exports.log={debug:function debug(message){for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key];}_reactNativeBeautifulLogs.log.apply(void 0,['debug','[ECU]',message].concat(args));},info:function info(message){for(var _len2=arguments.length,args=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++){args[_key2-1]=arguments[_key2];}_reactNativeBeautifulLogs.log.apply(void 0,['info','[ECU]',message].concat(args));},warn:function warn(message){for(var _len3=arguments.length,args=new Array(_len3>1?_len3-1:0),_key3=1;_key3<_len3;_key3++){args[_key3-1]=arguments[_key3];}_reactNativeBeautifulLogs.log.apply(void 0,['warn','[ECU]',message].concat(args));},error:function error(message){for(var _len4=arguments.length,args=new Array(_len4>1?_len4-1:0),_key4=1;_key4<_len4;_key4++){args[_key4-1]=arguments[_key4];}_reactNativeBeautifulLogs.log.apply(void 0,['error','[ECU]',message].concat(args));}};
//# sourceMappingURL=logger.js.map