You are not logged in.
Pages: 1
Hi Arnaud i have a may be stupid question how to handle your Change in TSynLog.DoLog/Enter in our Programs
you changed one Parameter from RawUtf8 to PUtf8Char
what is the best way to fix the Compiler Errors:
Sample 1:
old:
var XYZ: String := 'test'; // Sometimes we got String Var
TSynLog.Enter(StringToUtf8(XYZ), ...);
new:
TSynLog.Enter(PUtf8Char(StringToUtf8(XYZ)), ...); // is this the best way ?
Im not sure what this cast really does
Rad Studio 12.3 Athens
Offline
The best way is not to use TSynLog.Enter(...
Instead use:
var
aLog: ISynLog;
begin
aLog:= TSynLog.Enter(Self); //this is the first line before any other log
aLog.Log(sslInfo, ...
Offline
Pages: 1