Advertisement

12.05.2005 at 05:12PM PST, ID: 21654175
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.2

We need both site-wide error handler and cf application.log

Asked by BellHop in ColdFusion Application Server

Tags: , , , ,

I'd like to display cf errors via the Site-wide Error Handler setting in CF Administrator but we also wish to log the cf error to the application.log file, that is, the way it's logged if there was no error handler file. Or something just as easy and direct. I know how to do one at a time, no problem,  but not both at the same time. I know I can limit the amount of error message the user normally sees if the standard error is shown, but I want to see the full error. And I know I can mail the error to me but that's not practical. I need practical.

I'd rather not turn on ip address debugging. Too messy. I'm also aware of the individual debugging options in CF Admin and have a basic idea of my selections there but I don't see anything which will do what I want, display to the user, and write to application.log. Patching tons of code with CFTRY/CFCATCH, CFERROR or a similar method into hundreds of pages of code is out of the question. There should be a way to display the both but I don't see such an option. Perhaps the following code will do this system wide?

I was working with the following code, placed directly into the Site-wide Error Handler file displayed to everyone, but limiting display of cfdump to admin only via the cfif admin_ip. Again, this is in the error handling file defined in cf administrator.

Should I be able to use this to append errrors to the application.log file, and if so, how should I modify this code to make it work? We're using Coldfusion 5 server and SQL 2000 and application.log is stored in c:/cfusion/logs/. I know how to display that log file. That's not the problem. I suppose I can append the output to a log of my choice and clean this up and perhaps that will do it. What do you think? Can someone clean this up a bit and make suggestions, that is, if there is no other way to get done what I need?

Here's the current basic code:


There was an error. Please try again or <a href="/contact/admin.cfm">report</a> to the website administrator.


<CFIF ADMIN_IP>
<CFDUMP var="#error#">
<CFIF IsDefined('form')>Form<CFDUMP var="#form#"></CFIF>
<CFIF IsDefined('url')>Url<CFDUMP var="#url#"></CFIF>
<CFIF IsDefined('session')>Session<CFDUMP var="#session#"></CFIF>
<CFIF IsDefined('application')>Application<CFDUMP var="#application#"></CFIF>
</CFIF>

Start Free Trial
 
 
[+][-]12.05.2005 at 08:15PM PST, ID: 15425311

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: ColdFusion Application Server
Tags: coldfusion, error, log, site, wide
Sign Up Now!
Solution Provided By: Atabia
Participating Experts: 2
Solution Grade: B
 
 
[+][-]12.05.2005 at 08:56PM PST, ID: 15425468

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.06.2005 at 08:51PM PST, ID: 15433835

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.22.2005 at 08:37AM PST, ID: 15535092

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]12.22.2005 at 08:47PM PST, ID: 15540002

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.22.2005 at 09:17PM PST, ID: 15540095

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.30.2005 at 11:13AM PST, ID: 15579637

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32