Log your errors in your own file:

In your application.cfm:
  <CFERROR TYPE="EXCEPTION" TEMPLATE="handleerror.cfm">

In handleerror.cfm:
  <CFINCLUDE TEMPLATE="act_errorlogging.cfm">
  <CFINCLUDE TEMPLATE="dsp_error.cfm">

In act_errorloggin.cfm:
  <CFSET ERRORSTRING=""""&ERROR.TEMPLATE>
  <CFSET ERRORSTRING=ERRORSTRING&""","""&ERROR.DATETIME>
  <CFSET ERRORSTRING=ERRORSTRING&""","""&ERROR.BROWSER>
  <CFSET ERRORSTRING=ERRORSTRING&""","""&ERROR.DIAGNOSTICS>
  <CFSET ERRORSTRING=ERRORSTRING&""","""&ERROR.HTTPREFERER>
  <CFSET ERRORSTRING=ERRORSTRING&""","""&ERROR.QUERYSTRING>
  <CFSET ERRORSTRING=ERRORSTRING&""","""&ERROR.REMOTEADDRESS&"""">

  <CFFILE ACTION="APPEND"
FILE="#GetDirectoryFromPath(GetCurrentTemplatePath())#cferror.csv"
OUTPUT="#errorstring#" ADDNEWLINE="Yes">


In dsp_error.cfm: (notify the user)
  An error occured. The error has been logged with full details and we will
look into it as soon as possible. etcetera, etcetera....
  Go <A HREF="javascript:history.back()">back</A> to continue browsing.

Of course this approach assumes you are allowed to use CFFILE.
This allows you to do errorlogging for every separate application.

You can open and analyze the generated file in eg ms excel.

Good luck.

Remke Rutgers

> -----Original Message-----
> From: Brian Thornton [mailto:[EMAIL PROTECTED]]
> Sent: vrijdag 23 maart 2001 1:46
> To: CF-Talk
> Subject: Re: Cold Fusion Errors and reporting
> 
> 
> You can't do and CF tags in you error page...
> 
> Am I right?
> ----- Original Message -----
> From: "Jeffry Houser" <[EMAIL PROTECTED]>
> To: "Brian Thornton" <[EMAIL PROTECTED]>
> Sent: Thursday, March 22, 2001 9:43 PM
> Subject: Re: Cold Fusion Errors and reporting
> 
> 
> >
> >   Try something like this:
> >
> > <CFERROR type="monitor" template="myerrortemplate.cfm"
> > mailto="[EMAIL PROTECTED]" exception="any">
> >
> > In your 'myerrortemplate.cfm' page:
> >
> > <CFMAIL to="error.mailto">
> >    There was an error and it was
> >      #error.blahblah#
> >      #error.blahblah#
> >      etc..
> >      etc..
> > <CFMAIL>
> >
> >
> >   The documentation is absolutely horrendous for this, but 
> I suggest you
> > look at it anyway.  I remember the searching the on-line 
> help to be a
> > little more useful.
> >
> >    I once had a teacher w/ your last name.  I have no idea 
> what you'll do
> > with that last snippet of information.
> >
> >
> > At 03:52 PM 03/22/2001 -0700, you wrote:
> > >Lost me. Can you send me the line in application.cfm and 
> the error file?
> > >----- Original Message -----
> > >From: "Jeffry Houser" <[EMAIL PROTECTED]>
> > >To: "CF-Talk" <[EMAIL PROTECTED]>
> > >Sent: Thursday, March 22, 2001 7:46 PM
> > >Subject: Re: Cold Fusion Errors and reporting
> > >
> > >
> > > >
> > > >    use the CFERROR.  Type = monitor .
> > > >    Set the monitor template to use CFMAIL to send the errors to
> whomever
> > > > you wish.  (Please not me).
> > > >
> > > > At 02:54 PM 03/22/2001 -0700, you wrote:
> > > > >Does anyone know of or can point me in the right 
> direction for Cold
> > >Fusion
> > > > >ODBC, session, or application errors.
> > > > >
> > > > >Obviously CFERROR allows to keep the user happy but is it worth
> killing
> > > > >and function? What about sending the error to an email 
> or a more
> active
> > > > >approach instead of logging and log reading. 
> Intermedia.net doesn't
> allow
> > > > >for remote viewing of the logs obvious because of the shared
> environment.
> > > > >Does anyone know if you can modify Cf errors to a ODBC or ISAPI
> source
> > > > >like you can iis in request logging?
> > > > >
> > > > >Thanks,
> > > > >Brian
> > > > >
> > > > >
> > > > >
> > > >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to