Jump to content

Recommended Posts

Posted

Hello,

I need debug ISAPI dll, of course not from in Delphi. exe work without problem, but dll has a problem, I coulnd't find as long as two days. afew minutes ago I found problem, its on my Adoconnection string build routine. I don get any error, log files normal, but application freeze. problem on my this routine, but I need to debug. so, If I write a string into log file I can find then problem.

Is it possible add string(s) to unigui's log file ? and how to do this?

Thank you, regrads.

  • Upvote 1
  • 2 months later...
Posted
 UniServerModule.Logger.AddLog('renameden öncesi: 1');
  P:= DLLName;
 UniServerModule.Logger.AddLog('renameden öncesi: 2');
  S:= ChangeFileExt(P, '.run');
 UniServerModule.Logger.AddLog('renameden öncesi: 3');
  C:= ChangeFileExt(P, '.update');
 UniServerModule.Logger.AddLog('renameden öncesi: 4');
  Z:= 'c:\XE10\myIsapi\0\Debug\Win32\MyIsapi.dll';
  UniServerModule.Logger.AddLog('renameden öncesi:');
  if RenameFile(P, S)then begin
    UniSession.Log('renameden sonrası:');
    CopyFile(PWideChar(Z), PWideChar(C), True);
    UniServerModule.Logger.AddLog('copy sonrası  z=', Z);
  end;
ShowMessage(P +sLineBreak+ S +sLineBreak+ C +sLineBreak+ Z  +sLineBreak+ C);

This code in "onclick" Event on main form. When run this code on ISAPI, there is no error. But there is no log in log file too. code is worked becouse, showmessage is popup, and real & true values showing. what is worng ? I couldn't find.

I'm trying ISAPI update, with ISAPILoader.dll (you can find message about that in forum) I need to rename application (MyIsapi.dll) to MyIsapi.run, then copy new dll from c drive to webroot folder.

Why "UniServerModule.Logger.AddLog" not work here ???

Thank you

Posted

I know I'm looking there. UniGUI add self log but not mine. I added test code in "UniGUIServerModuleBeforeInit" its worked, I mean added in log file.

Can this about intraweb 14.1.4 ?

  • 4 months later...
Posted

Hi.

 

Can have a separated log file for the application, where store text info about the events inside the app, to monitor some things?

 

Something similar to alet.log in Oracle.

 

Thanks.

Posted

Sure, you can log anything to text files from the DLL application,

like to a /files/log.txt or you can log to the db if you can connect ok.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...