Talk:Logging:Enable Logs Quickly: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
(Created page with "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: LogTex...") |
(No difference)
|
Latest revision as of 08:07, 8 September 2022
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