We are working on converting the wiki to a static website controlled by markdown files in https://github.com/nsis-community. You can already see there how plug-ins will be posted. The end-user interface will still be a website but with a fresh coat of paint. Come meet us at Discord to talk about it.
Talk:Logging:Enable Logs Quickly
From NSIS Wiki
Jump to navigationJump to search
If you try to include something more complex into ${INPUT_TEXT}, like:
LogText "$\r$\n*** New logging started - ${DATE} ***"
You will get compile error:
!insertmacro: LogTextMacro LogText expects 1 parameters, got 12.
simple fix - add quotes "${INPUT_TEXT}" in:
!define LogText "!insertmacro LogTextMacro"
!macro LogTextMacro INPUT_TEXT
!ifdef ENABLE_LOGGING
LogText "${INPUT_TEXT}"
!endif
!macroend