GMan Well-Known Member Licensed User Longtime User Feb 16, 2019 #1 With this code: Code: Sub LogR(s As String) Dim joBA As JavaObject joBA.InitializeStatic("java.lang.System") Dim joBAF As JavaObject = joBA.GetFieldJO("err") joBAF.RunMethod("println", Array(s)) End Sub we can make a log entry in red color (B4J at least) Is it possible to change the color individually or, at least, in a small range (red,green,orange i.e.)
With this code: Code: Sub LogR(s As String) Dim joBA As JavaObject joBA.InitializeStatic("java.lang.System") Dim joBAF As JavaObject = joBA.GetFieldJO("err") joBAF.RunMethod("println", Array(s)) End Sub we can make a log entry in red color (B4J at least) Is it possible to change the color individually or, at least, in a small range (red,green,orange i.e.)
Cableguy Expert Licensed User Longtime User Feb 16, 2019 #2 You can log any statement you want in red using "LogError("your text here"). It is still not possible to log in other colors Upvote 0
You can log any statement you want in red using "LogError("your text here"). It is still not possible to log in other colors
GMan Well-Known Member Licensed User Longtime User Feb 16, 2019 #3 OK. I mentioned there is something possible with the ....("err") Maybe ("ok") for green or ("tip") in orange Upvote 0
OK. I mentioned there is something possible with the ....("err") Maybe ("ok") for green or ("tip") in orange
Cableguy Expert Licensed User Longtime User Feb 16, 2019 #4 This has been asked before, and the issue lies in the way the debugger for b4j handles the logging. Upvote 0
Cableguy Expert Licensed User Longtime User Feb 16, 2019 #5 See here https://www.b4x.com/android/forum/threads/logcolor-why-it-never-got-to-b4j.79434/ Upvote 0
GMan Well-Known Member Licensed User Longtime User Feb 16, 2019 #6 It might be added in the future. Click to expand... This post from Erel let me hope - Dum spiro,spero Upvote 0
It might be added in the future. Click to expand... This post from Erel let me hope - Dum spiro,spero
Tayfur Well-Known Member Licensed User Longtime User Feb 17, 2019 #7 GMan said: This post from Erel let me hope - Dum spiro,spero Click to expand... we are waiting... Upvote 0
R Roycefer Well-Known Member Licensed User Longtime User Feb 17, 2019 #8 Check out the jColorLogger library. Upvote 0
GMan Well-Known Member Licensed User Longtime User Feb 17, 2019 #9 Well done, but not that what we meant - we want to have the coloured entrys in the IDE Log Upvote 0