B4J Question clear logs?

thank you erel for your answer but i need to clear the logs in the IDE

would be nice if you could add it to the next update :)
sometimes i use a lot log() in my code and it is hard to find the right output in the IDE so if i could add a log.clear call
i would see only what is important for me at that moment.
 
Upvote 0
I can suggest a couple of options, since LogColor is not possible in B4J (why?)
I use seperators, like:

Log(" " & CRLF)
Log("-------------------------------------------")
log("my log title")
log(" " & CRLF)
Log("This is important to remember")
log("--------------------------------------------")

Space out with a screen height of blanks before actual log, like

for n = 0 to 30
Log(CRLF)
Next
 
Upvote 0
I can suggest a couple of options, since LogColor is not possible in B4J (why?)
I use seperators, like:

Log(" " & CRLF)
Log("-------------------------------------------")
log("my log title")
log(" " & CRLF)
Log("This is important to remember")
log("--------------------------------------------")

Space out with a screen height of blanks before actual log, like

for n = 0 to 30
Log(CRLF)
Next

wouldnot log.clear be simpler? :)
 
Upvote 0
It may not exactly fit your use-case, but when I need highly structured output, I use the jColorLogger library and run my programs in a console/terminal emulator rather than the IDE. You can use the jColorLogger library to out put color-coded column-aligned logging statements as well as use it to get input from the console. Unfortunately, inside the IDE, the output will be monochrome and you can't get input.

It doesn't have to be this way, though. If Erel would enable the logging window in the IDE to recognize ANSI escape sequences, then the jColorLogger library could show color-coded column-aligned output in the IDE.
 
Upvote 0
Back
Top