Bug? [closed] clearing the emulator logs for good

AnandGupta

Well-Known Member
Licensed User
Connected to emulator, works well.
But shows log of all the test logs of all the project I tried in the emulator.

If test project1 and show some logs, then another day try project2 and show some logs and so on, then today (say) if I try projectN, it shows logs from project1 !

Pressing the clear buttons does not help as it shows all again next time.

Any help on clearing them for good ?

Using B4A 9.01.2

Attached the logs as a file to understand the problem. Also the screen shots.

Regards,

Anand
 

Attachments

AnandGupta

Well-Known Member
Licensed User
This is not a bug. It is related to the way the logs are stored in Android.
I am using emulator.
Not bug, Ok, but any simple way to clean it up, say clear cache in emulator or something.

Regards,

Anand
 

AnandGupta

Well-Known Member
Licensed User
As the logs are stored in the system and there is no way to clear the logs from the system storage (they are rolled automatically) it is not simple to really clear the logs. I suggest you to add Log("**********************") or something similar in Service_Create of the starter service.
Ok
 

jimmyF

Active Member
Licensed User
I add this to the Service_Create sub of the Starter service

B4X:
LogColor("Log Starting at: " & DateTime.Time(DateTime.Now),Colors.Magenta)
 
Top