Wish Clear log.

Eme Fibonacci

Well-Known Member
Licensed User
Longtime User
Is it possible to implement this?

in code b4x a common log instruction:
B4X:
log("clearlog")
and then the IDE intercept the "clearlog" text and clear the log window?
 
Last edited:

Erel

B4X founder
Staff member
Licensed User
Longtime User

Diceman

Active Member
Licensed User
I just write a line in the log so I can block out a section of the log, like:
log(" START -------------->>>")
' a lot of log lines ....
log("END <<<---------------")

That makes it easy to scroll back up because it is highly visible. The "Start" "End" can be replaced with the sub names like "[IMPORTDATA]" etc.
If there are a lot of lines in the log, I copy and paste it into an editor like NotePad++ to search on it. (Right click on log and select "Copy all to clipboard").

If I have a lot of log statements that do detailed debugging, I may wrap the detailed logs with #IF statements so I can turn off the detailed logs at any time and still have the other general purpose logs displayed.

#If LogDetail
log(" START -------------->>>")
#END IF
' a lot of log lines ....
#IF LogDetail
log("END <<<---------------")
#END IF

Hope this helps. :cool:
 
Top