{"repo":"mowispace/react-native-logs","free":true,"listed":false,"github":"https://github.com/mowispace/react-native-logs","clone":"git clone https://github.com/mowispace/react-native-logs.git","description":"Performance-aware simple logger for React-Native and Expo with namespaces, custom levels and custom transports (colored console, file writing, etc.)","language":"TypeScript","stars":591,"topics":["react-native","logs","debugging","ios","android","logger","logging","debug","file","custom"],"license":"MIT","category":"mobile-apps","readme_excerpt":"react-native-logs Performance-aware simple logger for React-Native, Expo (managed and bare) and react-native-web with custom levels and transports (colored console, file writing, etc.). Each level has its severity: a number that represents its importance in ascending order from the least important to the most important. Eg. debug:0, info:1, warn:2, error:3. By config the logger with a minium severity level, you will see only the logs that have it highest. Then logs will be managed by transport: the function that will display/save/send log messages. It is also possible to extend the logger to create namespaced logs. In this way you will be able to see the log messages only for one or some parts of the code of your choice Demo console transport with custom colored levels and namespaces: Why another logging library? After trying the most known logging libraries, like winston and bunyan, we found that for react-native we needed something simpler, but still flexible, and without dependencies on nodejs. Comments and suggestions are welcome. Installation OR OR Quick Start By default the createLogger() method (called without arguments) will create a simple console logger with debug, info, warn and error levels. Configuration You can customize the logger by passing a config object to the createLogger method (see example below). All params are optional and will take default values if no corresponding argument is passed. Parameter Type Description Default ----------------- -------------","default_branch":null,"files":null,"tree":[],"storefront":"/r/mowispace","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mowispace/react-native-logs/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}