Skip to main content
WolfShade
Legend
August 17, 2012
Answered

CF9.0.1 + 2 hotfixes - CFLOG not working

  • August 17, 2012
  • 1 reply
  • 1363 views

Hello, everyone.

I have placed a CFLOG inside a CFC function that updates an article, at the very end of the function so that it can log who updated, the title of the article that was updated, and a timestamp.

According to the CF9 documentation, if the named log does not exist it will be created.

I have "updated" an article several times, and it did not create the log.  I then went into C:\ColdFusion9\logs and created a file called PAALog.log (the name used in the CFLOG tag.)  Updating an article several times, the PAALog.log file still shows a size of 0 and the timestamp has not changed.

Is there an issue with CFLOG?  Has anyone else experienced this?

V/r,

^_^

    This topic has been closed for replies.
    Correct answer Miguel-F

    Yes, the logs are located in C:\ColdFusion9\logs.  "Updating" an article (basically just loading it into the form and clicking submit) does not create the log; and if I manually create the log in Windows Explorer, it does not update.  My install is a stand-alone.

    Thanks,

    ^_^


    I would have to assume it is some kind of user rights issue.  I have never had a problem using cflog.  Have you enabled sandbox security?  If so, make sure cf has the correct rights.  Have you changed the user that is assigned to the cf service?  If so, make sure it has the correct rights.

    I guess you are not seeing any errors in the other cf logs?

    Put a cftry/catch block around your cflog line and see if it generates any errors.

    1 reply

    WolfShade
    WolfShadeAuthor
    Legend
    August 20, 2012

    Has anyone had this, or a similar, issue with CFLOG?

    ^_^

    Miguel-F
    Inspiring
    August 20, 2012

    Never had that issue and we use cflog a bit.  Are you looking in the correct log directory?  Not sure if you are using server or stand-alone.  CFLog writes to the log directory where the other ColdFusion logs reside under the WAR (for a server install).

    Log into your CF administrator and check if yor log file exists with the other cf logs.

    WolfShade
    WolfShadeAuthor
    Legend
    August 21, 2012

    Yes, the logs are located in C:\ColdFusion9\logs.  "Updating" an article (basically just loading it into the form and clicking submit) does not create the log; and if I manually create the log in Windows Explorer, it does not update.  My install is a stand-alone.

    Thanks,

    ^_^