Can you recommend an easy JavaScript logging (with log levels) library?
It will be good if I can see logs when testing my application with mobile devices.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Have a look at Log4JS
You can also use console.log on both Android and iOS.
On iOS, turn on developer tools from the Safari options in the Settings app. You’ll have to keep your messages short though since it truncates. More details from Apple here
For Android install the Android SDK and install any of the SDK software packages from
[sdk base]/tools/android.Plug your phone into your computer andgo to
[sdk base]/platform_tools/and runadb devices. You’ll see which Android devices are connected. If there is only one, you can just run the logcat commandadb logcat. I find it helpful to use grepadb logcat | grep -i consoleand you’ll see all the console.log messages in your website. More details from the Android developer site here