Skip to main content
Known Participant
July 2, 2019
Question

CF 18 - where are they hiding the error logs?

  • July 2, 2019
  • 1 reply
  • 1957 views

Ok, migrating from CF11 to CF18 ... and with database with unsynched tables ... so I expect errors.

With CF1 to CF11 I used application.log to find any errors in AJAX areas (CFCOMPONENT)

Hitting bugs and no where does it show errors.  Where are they?

Wow, several hours into CF18 and I loathe it.  Change for the sake of change.  Feels like WIndows 8.  UI is suddenly off the charts different.

Might well downgrade.

    This topic has been closed for replies.

    1 reply

    Charlie Arehart
    Community Expert
    Community Expert
    July 3, 2019

    There is no change with respect to where CF errors are stored in CF11 vs 2018. If they were showing in the application.log then, they still should be now.

    Of course, if you have an error handler in place, and THAT is intercepting the errors, then those are NOT logged--unless the error handler chooses to log them.

    /Charlie (troubleshooter, carehart. org)
    Known Participant
    July 3, 2019

    I am using exactly the same code that I have ported to a newly minted server running CF18.

    So, at the risk of sounding argumentative, CF18 is not properly logging fatal errors. 

    Same error handling. 

    Should be is the operative word.

    Something has change WRT to its logging ... and it's proving so time consuming that be weeks end (3 days of trying to find bugs manually) this client will be downgrading.

    I simply haven't seen the benefit of 18 yet.

    Off soapbox.

    Charlie Arehart
    Community Expert
    Community Expert
    July 3, 2019

    Sorry, I was not done with my answer, when I got a client call. I hit ctrl-s out of habit, and it saved AND POSTED that reply. Grr.

    So what I was going to go on to say was that if you're not seeing logs, there HAS to be something to explain it. It is NOT that CF has changed how logging works. I appreciate your frustration, and you may wish you didn't have to do the upgrade. Or you may not care to dig into this and will revert back. But we're here to help, and we should be able to solve this.

    The first thing I'd ask is: do you see ANY applicaton.log? If so, is there anything for today? If so, what if you did a simple test of:

    <cflog text="hi there">

    Run that from a page in whatever directory you are otherwise running code, and using whatever URL you're using to run that code. Does that line now appear in that file? It should. If it does not, then this is NOT about error logging (or error handling).

    It could be a permissions problem. What user is running the CF instance (service in Windows or daemon in Linux)? Does that user have permission to write to the CF logs folder? Again, do you see other logs in that folder, being written to today?

    If you do, I'd wonder this next: is the folder you're looking in the right one? If you are running CF Enterprise (or Trial or Developer edition), note that one can create multiple instances of CF on a single machine. And each instance gets its own folder under the ColdFusion2018 folder. The default would be "cfusion", and it has logs. If you see another instance name in there (any folder other than config, jre, or uninstall), then check THAT folder. It could be that your web site is configured to pass requests to that instance.

    These are some thing to start with. The problem should be solvable. There should be an explanation.

    And here's my "soapbox":

    We can keep digging at all these issues with you here on the forums, but if this gets time-sensitive, note that you could probably get all your issues solved quite quickly with an experienced person looking over your should to help solve all these various problems you are hitting.

    (No, it shouldn't be "necessary". And yes, it sucks to pay for CF and then have to pay for help. Some people see it as a no-brainer, if they may solve such problems in minutes or hours, versus beating their head against the wall trying to solve things via google searches and forum threads. To each their own. )

    I just want to let you know that there IS such help, and not just from me. I keep a list of such CF troubleshooting consultants at https://www.cf411.com/cfconsult. And you can learn about my rates, approach, and satisfaction guarantee at https://www.carehart.org/consulting.

    Off soapbox.

    Either way, I (and others) will be here for you, if you want to keep digging at it here in the forums, as you have seen. And nearly every problem has a solution. You just need to work through them, and that's what some of us do with people daily.

    /Charlie (troubleshooter, carehart. org)