Skip navigation
Currently Being Moderated

CF9.0.1 + 2 hotfixes - CFLOG not working

Aug 17, 2012 10:11 AM

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,

 

^_^

 
Replies
  • Currently Being Moderated
    Aug 20, 2012 8:29 AM   in reply to WolfShade

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 21, 2012 5:37 AM   in reply to WolfShade

    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.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points