we are currently programming modules for our installers. One of it is the Log_Module. We want to Add a detailed Info to the Logfile, but we don't know if the logfunction is called from a Section or a function. This is what we got (not working).
And it results in:
Call LogSetOn
${If} ${__SECTION__} != ""
FileWrite $Log_File "${TYPE}: ${__TIME__} ${__SECTION__} - ${MSG} (${__FILE__}, line ${__LINE__}) $\r$\n"
${EndIf}
${If} ${__FUNCTION__} != ""
FileWrite $Log_File "${TYPE}: ${__TIME__} ${__FUNCTION__} - ${MSG} (${__FILE__}, line ${__LINE__}) $\r$\n"
${EndIf}
Is there a way to find out if the function was called from a section or function?
INFO: 17:54:55 ${__SECTION__} - This is an Info (dummyServer.nsi, line 33.1.8)
INFO: 17:54:55 .onInit - This is an Info (dummyServer.nsi, line 33.1.12)
I also wonder about the linenumber output (33.xx.yy). What are the xx and yy for?
Thanks for any reply.