Hi,
i found that logging strings with Logcolor truncates the string, using the usual Log the string is ok.
I'm using B4A V4.30
here is the code to demonstrate it :
in my case i'm trying to log a string containing an ip address, when logged in red the string is truncated, when logged normally the string is ok. Also the code saves the log in a file and it's correct in both cases.
I made two screenshots where you can see the behaviour
Bye
DavideV
i found that logging strings with Logcolor truncates the string, using the usual Log the string is ok.
I'm using B4A V4.30
here is the code to demonstrate it :
B4X:
Sub ServerLog(AddLog As String)
'save the daily log
DateTime.DateFormat="yyyyMMdd"
AddLog=DateTime.Date(DateTime.Now) & "-" & DateTime.Time(DateTime.Now) & " Server: " & AddLog &CRLF
'LogColor(AddLog,Colors.Red)
Log(AddLog)
Dim DailyLog As String =DateTime.Date(DateTime.Now) &"_"& Main.LogFile
Dim FileOut As OutputStream=File.OpenOutput(Main.WkDir,DailyLog,True)
Dim Tw As TextWriter
Tw.Initialize(FileOut)
Tw.Write(AddLog)
Tw.Close
End Sub
in my case i'm trying to log a string containing an ip address, when logged in red the string is truncated, when logged normally the string is ok. Also the code saves the log in a file and it's correct in both cases.
I made two screenshots where you can see the behaviour
Bye
DavideV