Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:28 pm
by cnwjhp1 >> Thu, 20 Nov 2003 1:06:46 GMT
Torrie,
You have to do something like this method that we use:
logMessage(s:String) updating;
/* Uses the JadeLog class to write a message to msg<n>.log */begin
if msgLog=null then
create msgLog;
msgLog.fileName:="msg";
msgLog.formatOutput:=false;
// msgLog.maxFileSize:=1000; // leave commented out to use value from ini file - doesn't work - Jade bug
msgLog.maxFileSize:=app.getProfileStringAppServer(app.getIniFileNameAppServe r,"JadeLog","MaxLogFileSize","1000000").Integer;
endif;
msgLog.log(actualTimeAppServer.logFormat&" "
&name&"/"&cnGetInstanceId(process).String&": "
&s&CrLf);
// delete msgLog;
end;
As I recall, to release (unlock) the file, you have to delete the JadeLog instance. We don't run this way. To get it to "version" correctly, you have to explicitly set msgLog.maxFileSize. The above code reads the current .ini file to get the appropriate value. This works in 5.2.
Cheers,
John P