
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 error’s diagnostic
message.
Содержание COLDFUSION 5-DEVELOPING
Страница 1: ...Macromedia Incorporated Developing ColdFusion Applications MacroMedia ColdFusion 5 ...
Страница 58: ...38 Chapter 3 Querying a Database ...
Страница 134: ...114 Chapter 7 Updating Your Database ...
Страница 210: ...190 Chapter 10 Reusing Code ...
Страница 232: ...212 Chapter 11 Preventing and Handling Errors ...
Страница 238: ...218 Chapter 12 Using the Application Framework ...
Страница 262: ...242 Chapter 12 Using the Application Framework ...
Страница 278: ...258 Chapter 13 Extending ColdFusion Pages with CFML Scripting ...
Страница 320: ...300 Chapter 15 Indexing and Searching Data ...
Страница 336: ...316 Chapter 16 Sending and Receiving E mail ...
Страница 374: ...354 Chapter 18 Interacting with Remote Servers ...