Search code examples
debuggingloggingcoldfusionlucee

Coldfusion cflog not adding any text to log file


I feel ridiculous for even having to ask this question but not being able to print to a simple log file after an hour and a half is absurd. All I am trying to do is write "okok" to a log file and I can't even get that to work. I am using Lucee coldfusion. Here is my code:

 <cflog file="logFile" application="no" text="okok" type="information">

The file "logFile" is in the same directory as everything else. What in the world am I missing? There are no errors there is just never anything added to the log file.

enter image description here


Solution

  • The documentation on cflog has the answer. Look at the description of the file attribute. The key sentence is, The file must be located in the default log directory.

    This link, will help you find that directory.