User Guide

Logging Errors 203
We apologize for the inconvenience. </p>
<cflog file="myapp_errors"
text="Exception error --
Exception type: #error.type#
Template: #error.template#,
Remote Address: #error.remoteAddress#,
HTTP Rerference: #error.HTTPReferer#
Diagnositcs: #error.diagnostics#"
type="Error">
</body>
</html>
Reviewing the code
The following table describes the highlighted code and its function:
Code Description
<cflog file=myapp_errors
text=Exception error
Exception type: #error.type#
Template: #Error.Template#,
Remote Address:
#Error.RemoteAddress#,
Diagnositcs: #Error.Diagnostics#
type=Error>
When this page is processed, log an
error message to the file
myapp_errors.log file in the
ColdFusion log directory containing
the thread ID, date and time,
application, and an error message
that includes the exception type, the
path of the page that caused the
error, the remote address that called
the page, and the errors diagnostic
message.