Alberto Iglesias Well-Known Member Licensed User Longtime User May 8, 2014 #1 Erel, Can you put a simple property in LOG to clear the log screen? Like: Log.Clear Thanks!!!
Erel B4X founder Staff member Licensed User Longtime User May 8, 2014 #2 It is technically not possible. The logs are maintained by the OS and cannot be cleared. Make sure to use LogColor if you want to highlight a message.
It is technically not possible. The logs are maintained by the OS and cannot be cleared. Make sure to use LogColor if you want to highlight a message.
Alberto Iglesias Well-Known Member Licensed User Longtime User May 8, 2014 #3 No no!!! Not clearing the inside Log, only the right window in B4A. Just like CLEAR button, but programaticly! Last edited: May 8, 2014
No no!!! Not clearing the inside Log, only the right window in B4A. Just like CLEAR button, but programaticly!
DonManfred Expert Licensed User Longtime User May 8, 2014 #4 maybe if clearlog then and clearlog return false if the device is not connected to b4a. If it is the log inside b4a should be cleared... I like the idea!
maybe if clearlog then and clearlog return false if the device is not connected to b4a. If it is the log inside b4a should be cleared... I like the idea!
Alberto Iglesias Well-Known Member Licensed User Longtime User May 8, 2014 #5 Yeah! It´s important to view clearing while debugging..
NJDude Expert Licensed User Longtime User May 8, 2014 #7 So you are saying that clicking on the CLEAR button on the IDE is too hard?, fellas, you ARE lazy
JakeBullet70 Well-Known Member Licensed User Longtime User May 8, 2014 #8 Nope, saying that at a certain point in my code I want to clear it. And yes, I am a programmer so of course I am lazy...
Nope, saying that at a certain point in my code I want to clear it. And yes, I am a programmer so of course I am lazy...
Alberto Iglesias Well-Known Member Licensed User Longtime User May 8, 2014 #9 No.... In a large app, is more clear view the logs in parts, clearing in certain points, and sometimes the process is slow and then we not in front of this button And Yes... I´m lazy too
No.... In a large app, is more clear view the logs in parts, clearing in certain points, and sometimes the process is slow and then we not in front of this button And Yes... I´m lazy too
Erel B4X founder Staff member Licensed User Longtime User May 8, 2014 #10 This is a nice idea however the "cost" (time and added complexity) to implement it are much higher than the (small) benefit. The only way that user code directly interacts with the IDE is through the logs. It is possible to send commands through the logs. This is how LogColor works for example (and there are other cases as well). However a "clear command" cannot work this way as it will cause the logs to clear in unwanted situations. For example when the IDE connects to the logs and then sees an old clear command.
This is a nice idea however the "cost" (time and added complexity) to implement it are much higher than the (small) benefit. The only way that user code directly interacts with the IDE is through the logs. It is possible to send commands through the logs. This is how LogColor works for example (and there are other cases as well). However a "clear command" cannot work this way as it will cause the logs to clear in unwanted situations. For example when the IDE connects to the logs and then sees an old clear command.
Alberto Iglesias Well-Known Member Licensed User Longtime User May 8, 2014 #11 At least can you put a checkbox in a IDE to clear (or not) the Log when APP start?
Erel B4X founder Staff member Licensed User Longtime User May 9, 2014 #12 This can be added. There is actually such an option in B4J.
wimpie3 Well-Known Member Licensed User Longtime User May 9, 2014 #13 +1 for that... I often have to look through the entire log file to see where the latest run begins.
MikeH Well-Known Member Licensed User Longtime User Jan 19, 2015 #14 Could this be implemented now?, as log clearing at compile is now possible. Thank you Erel.
Erel B4X founder Staff member Licensed User Longtime User Jan 20, 2015 #15 People reached the moon so I will not say that it is impossible to add such feature. This is a problematic feature as the keyword code will need to communicate directly with the IDE. I don't think that this feature will be added.
People reached the moon so I will not say that it is impossible to add such feature. This is a problematic feature as the keyword code will need to communicate directly with the IDE. I don't think that this feature will be added.
S sorex Expert Licensed User Longtime User Jan 20, 2015 #16 @Erel : what about log("!clearlog") or something ? as you go through the lines to make them into single line selectable items in the log view it should be easy to detect that and clear the log. there's no need for fancy code sending or something like that just a 5 minute hack like this will work. (just an additional if/then in the ide's log routines)
@Erel : what about log("!clearlog") or something ? as you go through the lines to make them into single line selectable items in the log view it should be easy to detect that and clear the log. there's no need for fancy code sending or something like that just a 5 minute hack like this will work. (just an additional if/then in the ide's log routines)
Erel B4X founder Staff member Licensed User Longtime User Jan 20, 2015 #17 Not good enough. But I feel that we are spending too much time on a minor improvement. (it is not good enough because the message will remain in the logs and the IDE will need to know whether this is a new message or an old one).
Not good enough. But I feel that we are spending too much time on a minor improvement. (it is not good enough because the message will remain in the logs and the IDE will need to know whether this is a new message or an old one).
S sorex Expert Licensed User Longtime User Jan 20, 2015 #18 it can be handy sometimes, I agree... but if it requires a lot of (re)coding for a handfull of people that will use it it might not be worth it like you wrote.
it can be handy sometimes, I agree... but if it requires a lot of (re)coding for a handfull of people that will use it it might not be worth it like you wrote.
Cableguy Expert Licensed User Longtime User Jan 20, 2015 #19 Guys... How about a simple sub like: Sub ClearLog For n=0 to 50 log (" ") Next log ("Log Cleared") End sub I know, this does not clear the log, but it will at least give you a blank log sheet!
Guys... How about a simple sub like: Sub ClearLog For n=0 to 50 log (" ") Next log ("Log Cleared") End sub I know, this does not clear the log, but it will at least give you a blank log sheet!