Freeman35 Posted October 27, 2016 Share Posted October 27, 2016 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. 1 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 27, 2016 Share Posted October 27, 2016 Hi, Use uniServerModule.Logger.AddLog() Best regards. 2 Quote Link to comment Share on other sites More sharing options...
molla2005b Posted October 27, 2016 Share Posted October 27, 2016 hi u can use too UniSession.Log(s1,s2,subFolder:string); Best regards. 1 Quote Link to comment Share on other sites More sharing options...
Freeman35 Posted October 31, 2016 Author Share Posted October 31, 2016 Thank you, sorry for late answer, Quote Link to comment Share on other sites More sharing options...
Freeman35 Posted January 3, 2017 Author Share Posted January 3, 2017 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 Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted January 3, 2017 Administrators Share Posted January 3, 2017 Look for log files under log_isapi folder. Quote Link to comment Share on other sites More sharing options...
Freeman35 Posted January 3, 2017 Author Share Posted January 3, 2017 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 ? Quote Link to comment Share on other sites More sharing options...
jahlxx Posted May 25, 2017 Share Posted May 25, 2017 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. Quote Link to comment Share on other sites More sharing options...
Ron Posted May 25, 2017 Share Posted May 25, 2017 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. Quote Link to comment Share on other sites More sharing options...
jahlxx Posted May 26, 2017 Share Posted May 26, 2017 ok.how to do to a txt file? Quote Link to comment Share on other sites More sharing options...
jahlxx Posted May 26, 2017 Share Posted May 26, 2017 Can do with unisession.log, but are differents files for every day, not a unique log file. ??? Quote Link to comment Share on other sites More sharing options...
IRWANTO82 Posted May 26, 2017 Share Posted May 26, 2017 can i use separate file with username and date for log file? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.