4

In the google style guidelines at http://source.android.com/source/code-style.html#log-sparingly, you are told to wrap verbose/debug log statements in if (LOCAL_LOGV) / if (LOCAL_LOGD). I don't quite understand where LOCAL_LOG[D|V] is supposed to be defined, and exactly why this would filter out the log statements when creating a release build.

I can't seem to find the documentation describing this, can anyone help?

rogerkk
  • 5,494
  • 5
  • 37
  • 53

2 Answers2

0

While the Log-Class has methods for any kind of log (error or just a debug), all that was meant by this is that you should use the correct method for what you want to log: http://developer.android.com/reference/android/util/Log.html

Lukas Knuth
  • 25,449
  • 15
  • 83
  • 111
0

This answer here gives some good detail on the topic. It seems to be a difficultly for lots of people at the moment.

How do I enable/disable log levels in Android?

Community
  • 1
  • 1
TurqMage
  • 3,321
  • 2
  • 31
  • 52