O'Reilly logo

Mobile DevOps by Jhalak Modi, Rohin Tak

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Writing to the debug log

You can log messages to the debug log using the Android.Util.Log class. It has different levels of logging:

  • Info
  • Debug
  • Warning
  • Error

All these levels are self-explanatory.

  1. Let's replace the Console.WriteLine() written in the previous section with Log.Debug() to write the logs into logcat:
  1. Go to the logcat (Device Log) window and filter tags with the tag given in the code to see only the logs we have written in the code. In this case, the tag will be PhoneCall:
  1. This is a very simple and straightforward way of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required