1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

Bug? [closed] clearing the emulator logs for good

Discussion in 'Bugs & wishlist' started by AnandGupta, Jul 27, 2019.

  1. AnandGupta

    AnandGupta Active 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
     

    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

    This is not a bug. It is related to the way the logs are stored in Android.
     
  3. AnandGupta

    AnandGupta Active Member Licensed User

    I am using emulator.
    Not bug, Ok, but any simple way to clean it up, say clear cache in emulator or something.

    Regards,

    Anand
     
  4. Erel

    Erel Administrator Staff 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.
     
  5. AnandGupta

    AnandGupta Active Member Licensed User

    Ok
     
  6. jimmyF

    jimmyF Active Member Licensed User

    I add this to the Service_Create sub of the Starter service

    Code:
    LogColor("Log Starting at: " & DateTime.Time(DateTime.Now),Colors.Magenta)
     
    Erel likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice