Android Question Who can see the logcat?

aidymp

Well-Known Member
Licensed User
Longtime User
Hi I had to debug my app using the Android SDK Monitor program! its pretty cool! but seems to give out a log of information that I was logging! (obviously I should log a lot less info) - Is this the standard procedure? To remove all logging info before release?

Thanks

Aidy
 

DonManfred

Expert
Licensed User
Longtime User
Is this the standard procedure? To remove all logging info before release?
You can use Conditional compiling for your LOGS...

B4X:
    #if debug
        Log("Downloading...")     
    #end if
    #if release
        Log("Release logging...")     
    #end if

Once you wrote your app like this you are able to see all logs when you are running the app in debug mode. And you will not get any log output when compiling in RELEASE mode... (in my code example you´ll get a log line in release too ;-) )
 
Last edited:
Upvote 0
Top