I want create a log file. I tried but its show me an error. Can anyone help? I show my full code here:
Please see this line. I don't know what happened with it, can output error:
<cffile action="WRITE" file="#expandpath('API.log')#"
output="#filecontent#" addnewline="Yes" fixnewline="No"
Edit: I tried and it showed me an error:
Invalid CFML construct found on line 213 at column 110. ColdFusion was looking at the following text:
''
The CFML compiler was processing:
A cffile tag beginning on line 213, column 2.
The main error is in this line:
<cffile action="WRITE" file="#expandpath('Info.log')#"
output="#filecontent#" addnewline="Yes" fixnewline="No"
Please tell me what's happening?