Freeman35 Posted October 27, 2016 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
Sherzod Posted October 27, 2016 Posted October 27, 2016 Hi, Use uniServerModule.Logger.AddLog() Best regards. 2 Quote
molla2005b Posted October 27, 2016 Posted October 27, 2016 hi u can use too UniSession.Log(s1,s2,subFolder:string); Best regards. 1 Quote
Freeman35 Posted October 31, 2016 Author Posted October 31, 2016 Thank you, sorry for late answer, Quote
Freeman35 Posted January 3, 2017 Author 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
Administrators Farshad Mohajeri Posted January 3, 2017 Administrators Posted January 3, 2017 Look for log files under log_isapi folder. Quote
Freeman35 Posted January 3, 2017 Author 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
jahlxx Posted May 25, 2017 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
Ron Posted May 25, 2017 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
jahlxx Posted May 26, 2017 Posted May 26, 2017 Can do with unisession.log, but are differents files for every day, not a unique log file. ??? Quote
IRWANTO82 Posted May 26, 2017 Posted May 26, 2017 can i use separate file with username and date for log file? Quote
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.