2

I understood that it's not good practice to publish an app with logs, so i disabled all my log calls.

Now AdMob logs every time an ad is displayed, How can i cancel that? i don't seem to find any information about this topic in the documentation, and i've read that you can use ProGuard but that seems like a bad solution.

Isn't there someway to disable 3rd party logs?

eric.itzhak
  • 15,752
  • 26
  • 89
  • 142
  • Well, if admob sdk doesn't have a method/API to disable loggings, then you can't disable it. It all depends on how Google build the library, they could have left the logging enabled without a way to disable it. – azgolfer Jun 19 '12 at 20:19
  • The Admob SDK does not come with a way to disable it; however, there are other ways in order to disable the output of these logs because theses logs are special for developers. – Jared Burrows Jun 20 '12 at 02:52
  • Havn't tried it yet but as it's not the first answer that says to use proguard, i assumed it's the only way... – eric.itzhak Jun 20 '12 at 15:08

1 Answers1

2

Luckily this has already been answered. The best thing to do is simply turn on proguard in your application.

Turn on Proguard: Turning Proguard On/Off Using Properties

Then simply add this to the proguard.cfg here:

Add to proguard.cfg: Remove all debug logging calls before publishing: are there tools to do this?

One Proguard is on and you add that to the proguard.cfg, you can simply export the signed application and it will be gone. I just tested this yesterday.

Regards,

Community
  • 1
  • 1
Jared Burrows
  • 54,294
  • 25
  • 151
  • 185