Bug? BA.Log not always (or double) printed when used in library in debug mode

alwaysbusy

Expert
Licensed User
Longtime User
In debug mode: I've noticed when using BA.Log() statements in a library, they are not always shown in the log window, and sometimes double. Is this expected behavior? When redirected to a file, they do show up.
Maybe it is because of the number of logs I want to print? Is there some flush method I could use?

In the log window:
B4X:
...
OPTIMISATION: The METHOD getvisible in (MODULE: SKTextBox) appears to be unused
OPTIMISATION: The METHOD getenabled in (MODULE: SKTextBox) appears to be unused
OPTIMISATION: The METHOD setlabel in (MODULE: SKTextBox) appears to be unused
OPTIMISATION: The METHOD getlabel in (MODULE: SKTextBox) appears to be unused
OPTIMISATION: The METHOD settext in (MODULE: SKTextBox) appears to be unused
<-- missing a whole chunk of logs
Copying Javascript files to WebApp assets...
Copying Javascript files to WebApp assets... <--- double printed
Building K:\BANano4.50\BANanoLibraries\SkeletonCSS\LibrarySourceCode - Test 3\Objects\BANanoSkeleton\index.html

Redirected to a file:
B4X:
...
OPTIMISATION: The METHOD getvisible in (MODULE: SKTextBox) appears to be unused
OPTIMISATION: The METHOD getenabled in (MODULE: SKTextBox) appears to be unused
OPTIMISATION: The METHOD setlabel in (MODULE: SKTextBox) appears to be unused
OPTIMISATION: The METHOD getlabel in (MODULE: SKTextBox) appears to be unused
OPTIMISATION: The METHOD settext in (MODULE: SKTextBox) appears to be unused <--- all after this is missing in the log window
OPTIMISATION: The METHOD gettext in (MODULE: SKTextBox) appears to be unused
OPTIMISATION: The METHOD getfile in (MODULE: SKTextBox) appears to be unused
OPTIMISATION: The METHOD getelement in (MODULE: SKChip) appears to be unused
OPTIMISATION: The METHOD getid in (MODULE: SKChip) appears to be unused
OPTIMISATION: The METHOD addtoparent in (MODULE: SKChip) appears to be unused
OPTIMISATION: The METHOD trigger in (MODULE: SKChip) appears to be unused
OPTIMISATION: The METHOD setclasses in (MODULE: SKChip) appears to be unused
OPTIMISATION: The METHOD getclasses in (MODULE: SKChip) appears to be unused
OPTIMISATION: The METHOD setstyle in (MODULE: SKChip) appears to be unused
OPTIMISATION: The METHOD getstyle in (MODULE: SKChip) appears to be unused
OPTIMISATION: The METHOD getvisible in (MODULE: SKChip) appears to be unused
OPTIMISATION: The METHOD getenabled in (MODULE: SKChip) appears to be unused
OPTIMISATION: The METHOD settext in (MODULE: SKChip) appears to be unused
OPTIMISATION: The METHOD gettext in (MODULE: SKChip) appears to be unused
OPTIMISATION: The METHOD getelement in (MODULE: SKCode) appears to be unused
OPTIMISATION: The METHOD getid in (MODULE: SKCode) appears to be unused
OPTIMISATION: The METHOD addtoparent in (MODULE: SKCode) appears to be unused
OPTIMISATION: The METHOD remove in (MODULE: SKCode) appears to be unused
OPTIMISATION: The METHOD trigger in (MODULE: SKCode) appears to be unused
OPTIMISATION: The METHOD setclasses in (MODULE: SKCode) appears to be unused
OPTIMISATION: The METHOD getclasses in (MODULE: SKCode) appears to be unused
OPTIMISATION: The METHOD setstyle in (MODULE: SKCode) appears to be unused
OPTIMISATION: The METHOD getstyle in (MODULE: SKCode) appears to be unused
OPTIMISATION: The METHOD getvisible in (MODULE: SKCode) appears to be unused
OPTIMISATION: The METHOD setsnippet in (MODULE: SKCode) appears to be unused
OPTIMISATION: The METHOD getsnippet in (MODULE: SKCode) appears to be unused
OPTIMISATION: The METHOD getelement in (MODULE: SKColumn) appears to be unused
OPTIMISATION: The METHOD getid in (MODULE: SKColumn) appears to be unused
OPTIMISATION: The METHOD addtoparent in (MODULE: SKColumn) appears to be unused
OPTIMISATION: The METHOD remove in (MODULE: SKColumn) appears to be unused
OPTIMISATION: The METHOD trigger in (MODULE: SKColumn) appears to be unused
OPTIMISATION: The METHOD setclasses in (MODULE: SKColumn) appears to be unused
OPTIMISATION: The METHOD getclasses in (MODULE: SKColumn) appears to be unused
OPTIMISATION: The METHOD setstyle in (MODULE: SKColumn) appears to be unused
OPTIMISATION: The METHOD getstyle in (MODULE: SKColumn) appears to be unused
OPTIMISATION: The METHOD getvisible in (MODULE: SKColumn) appears to be unused
OPTIMISATION: The METHOD setenabled in (MODULE: SKColumn) appears to be unused
OPTIMISATION: The METHOD getelement in (MODULE: SKCombo) appears to be unused
OPTIMISATION: The METHOD getid in (MODULE: SKCombo) appears to be unused
OPTIMISATION: The METHOD addtoparent in (MODULE: SKCombo) appears to be unused
OPTIMISATION: The METHOD remove in (MODULE: SKCombo) appears to be unused
OPTIMISATION: The METHOD trigger in (MODULE: SKCombo) appears to be unused
OPTIMISATION: The METHOD setclasses in (MODULE: SKCombo) appears to be unused
OPTIMISATION: The METHOD getclasses in (MODULE: SKCombo) appears to be unused
OPTIMISATION: The METHOD setstyle in (MODULE: SKCombo) appears to be unused
OPTIMISATION: The METHOD getstyle in (MODULE: SKCombo) appears to be unused
OPTIMISATION: The METHOD getvisible in (MODULE: SKCombo) appears to be unused
OPTIMISATION: The METHOD getenabled in (MODULE: SKCombo) appears to be unused
OPTIMISATION: The METHOD addoption in (MODULE: SKCombo) appears to be unused
OPTIMISATION: The METHOD setlabel in (MODULE: SKCombo) appears to be unused
OPTIMISATION: The METHOD getlabel in (MODULE: SKCombo) appears to be unused
OPTIMISATION: The METHOD setvalue in (MODULE: SKCombo) appears to be unused
OPTIMISATION: The METHOD getvalue in (MODULE: SKCombo) appears to be unused
OPTIMISATION: The METHOD getelement in (MODULE: SKContainer) appears to be unused
OPTIMISATION: The METHOD getid in (MODULE: SKContainer) appears to be unused
OPTIMISATION: The METHOD addtoparent in (MODULE: SKContainer) appears to be unused
OPTIMISATION: The METHOD remove in (MODULE: SKContainer) appears to be unused
OPTIMISATION: The METHOD trigger in (MODULE: SKContainer) appears to be unused
OPTIMISATION: The METHOD setclasses in (MODULE: SKContainer) appears to be unused
OPTIMISATION: The METHOD getclasses in (MODULE: SKContainer) appears to be unused
OPTIMISATION: The METHOD setstyle in (MODULE: SKContainer) appears to be unused
OPTIMISATION: The METHOD getstyle in (MODULE: SKContainer) appears to be unused
OPTIMISATION: The METHOD getvisible in (MODULE: SKContainer) appears to be unused
OPTIMISATION: The METHOD setenabled in (MODULE: SKContainer) appears to be unused
OPTIMISATION: The METHOD getelement in (MODULE: SKDatePicker) appears to be unused
OPTIMISATION: The METHOD getid in (MODULE: SKDatePicker) appears to be unused
OPTIMISATION: The METHOD addtoparent in (MODULE: SKDatePicker) appears to be unused
OPTIMISATION: The METHOD remove in (MODULE: SKDatePicker) appears to be unused
OPTIMISATION: The METHOD trigger in (MODULE: SKDatePicker) appears to be unused
OPTIMISATION: The METHOD setclasses in (MODULE: SKDatePicker) appears to be unused
OPTIMISATION: The METHOD getclasses in (MODULE: SKDatePicker) appears to be unused
OPTIMISATION: The METHOD setstyle in (MODULE: SKDatePicker) appears to be unused
OPTIMISATION: The METHOD getstyle in (MODULE: SKDatePicker) appears to be unused
OPTIMISATION: The METHOD getvisible in (MODULE: SKDatePicker) appears to be unused
OPTIMISATION: The METHOD getenabled in (MODULE: SKDatePicker) appears to be unused
OPTIMISATION: The METHOD setlabel in (MODULE: SKDatePicker) appears to be unused
OPTIMISATION: The METHOD getlabel in (MODULE: SKDatePicker) appears to be unused
OPTIMISATION: The METHOD setdate in (MODULE: SKDatePicker) appears to be unused
OPTIMISATION: The METHOD clear in (MODULE: SKDatePicker) appears to be unused
OPTIMISATION: The METHOD gotomonth in (MODULE: SKDatePicker) appears to be unused
OPTIMISATION: The METHOD gototoday in (MODULE: SKDatePicker) appears to be unused
OPTIMISATION: The METHOD showcalendar in (MODULE: SKDatePicker) appears to be unused
OPTIMISATION: The METHOD hidecalendar in (MODULE: SKDatePicker) appears to be unused
---------------------- OPTIMISATION CLASSES -----------------------
OPTIMISATION: The CLASS: SKDivider appears to be unused
OPTIMISATION: The CLASS: SKImage appears to be unused
OPTIMISATION: The CLASS: SKList appears to be unused
OPTIMISATION: The CLASS: SKNavigationBar appears to be unused
OPTIMISATION: The CLASS: SKRadio appears to be unused
OPTIMISATION: The CLASS: SKShared appears to be unused
OPTIMISATION: The CLASS: SKSwitch appears to be unused
OPTIMISATION: The CLASS: SKTable appears to be unused
OPTIMISATION: The CLASS: SKCheckbox appears to be unused
OPTIMISATION: The CLASS: SKTextArea appears to be unused
OPTIMISATION: The CLASS: SKCode appears to be unused
OPTIMISATION: The CLASS: SKCombo appears to be unused
Copying CSS files to WebApp assets...
Copying Javascript files to WebApp assets...
Building K:\BANano4.50\BANanoLibraries\SkeletonCSS\LibrarySourceCode - Test 3\Objects\BANanoSkeleton\index.html

Alwaysbusy
 

alwaysbusy

Expert
Licensed User
Longtime User
Ok, it seems like the sheer number of logs is causing this. I solved it by only showing the first 30 and then an extra line to say there are more.
When there are some many, it isn't useful anyway to list them all by name ;)

B4X:
...
OPTIMISATION: The METHOD setclasses in (MODULE: SKDropButton) appears to be unused
OPTIMISATION: The METHOD getclasses in (MODULE: SKDropButton) appears to be unused
OPTIMISATION: The METHOD setstyle in (MODULE: SKDropButton) appears to be unused
OPTIMISATION: 352 more methods appear to be unused <----------------------------------------------------------------
---------------------- OPTIMISATION CLASSES -----------------------
OPTIMISATION: The CLASS: SKDivider appears to be unused
OPTIMISATION: The CLASS: SKImage appears to be unused
OPTIMISATION: The CLASS: SKList appears to be unused
OPTIMISATION: The CLASS: SKNavigationBar appears to be unused
OPTIMISATION: The CLASS: SKRadio appears to be unused
OPTIMISATION: The CLASS: SKShared appears to be unused
OPTIMISATION: The CLASS: SKSwitch appears to be unused
OPTIMISATION: The CLASS: SKTable appears to be unused
OPTIMISATION: The CLASS: SKCheckbox appears to be unused
OPTIMISATION: The CLASS: SKTextArea appears to be unused
OPTIMISATION: The CLASS: SKCode appears to be unused
OPTIMISATION: The CLASS: SKCombo appears to be unused
Copying CSS files to WebApp assets...
Copying Javascript files to WebApp assets...
Building K:\BANano4.50\BANanoLibraries\SkeletonCSS\LibrarySourceCode - Test 3\Objects\BANanoSkeleton\index.html

Alwaysbusy
 
Top