User Guide

Table Of Contents
Using the cftrace tag to trace execution 437
An in-line trace messages look like the following:
The following table lists the displayed information:
ColdFusion logs all
cftrace output to the file logs\cftrace.log in your ColdFusion installation
directory.
A log file entry looks like the following:
"Information","web-29","04/01/02","13:21:11","MyApp","[501 ms (1st trace)]
[C:\CFusionMX7\wwwroot\MYStuff\mydocs\tractest.cfm @ line: 14] - [UDF End]
[MyStatus = Success] GetRecords UDF call has completed "
This entry is in standard ColdFusion log format, with comma-delimited fields inside double-
quote characters. The information displayed in the trace output is in the last, message, field.
The following table lists the contents of the trace message and the log entries. For more
information on the log file format, see “Logging errors with the cflog tag” on page 321.
Entry Meaning
Trace type (severity) specified in the
cftrace call; in this case,
Information.
[CFTRACE 13:21:11.011] Time when the
cftrace tag executed.
[501 ms] Time taken for processing the current request to the point of
the
cftrace tag.
[C:\CusionMX\wwwroot\MYStuff\
mydocs\tractest.cfm]
Path in the web server of the page that contains the
cftrace
tag.
@ line:14 The line number of the
cftrace tag.
[UDF End] Value of the
cftrace tag category attribute.
GetRecords UDF call has completed The cftrace tag text attribute with any variables replaced
with their values.
MyStatus Success Name and value of the variable specified by the
cftrace tag
var attribute.
Entry Meaning
Information The Severity specified in the
cftrace call.
web-29 Server thread that executed the code.
04/01/02 Date the trace was logged.
13:21:11 Time the trace was logged.
MyApp The application name, as specified in a
cfapplication tag.