Code: Select all
getLogPathClient() : String;
vars
sLogPath : String;
begin
sLogPath := getProfileString(getIniFileName, "JadeLog", "LogDirectory", "<default>");
if sLogPath.toLower = "<default>" then
sLogPath := process.getJadeHomeDirectory.ensureTrailingSlash & "logs\";
elseif sLogPath[1:2] <> "\\" and sLogPath[2:1] <> ":" then // relative path
sLogPath := process.getJadeHomeDirectory.ensureTrailingSlash & sLogPath;
endif;
return sLogPath.ensureTrailingSlash;
end;