WISH/BUG: unnecessarily logging

JohnK

Active Member
Licensed User
Longtime User
I have a widget, and when I connect a running emulator to the IDE, I get a heap of logs, which I did not add. I checked the Java source code that was generated, and found numerous log lines.

The one below is the one that concerns me the most; its just logs and logs and logs...

anywheresoftware.b4a.keywords.Common.Log("** Service (widget) Start **");

If I did not put in the code that caused it, I do not want any extra CPU cycles being chewed, no matter how few. ;)

Maybe there should be option to not include these logs.
 

JohnK

Active Member
Licensed User
Longtime User
I will look further into it, but I am not starting the service this often; once a minute.
 

JohnK

Active Member
Licensed User
Longtime User
Yes, much more often. My logging I have added for debug appears once a minute. The logging above happens all the time.

Its actually at a point where I lose my logging as it takes a second to scroll off the screen.

PS: Is there anyway to "disconnect" the logging once you have connected?

Dont know if this will help, but after I delete the widget, my logging stops, the above logging continues unabated.
 
Last edited:

JohnK

Active Member
Licensed User
Longtime User
OK, I found the problem, and it was MY bug. :signOops:

However, I would still want the option to turn off the logging that the B4A compiler adds when converting it to Java.
 
Top