MACROMEDIA COLFUSION MX 7-CFML Reference page 276

Cfml reference
Hide thumbs Also See for COLFUSION MX 7-CFML:
Table of Contents

Advertisement

cflog
Description
Writes a message to a log file.
Category
Data output tags
Syntax
<cflog
text = "text"
log = "log type"
file = "filename"
type = "message type"
application = "yes" or "no">
See also
cfcol, cfcontent, cfoutput,
History
ColdFusion MX: Deprecated the
might cause an error, in later releases. (In earlier releases, these attributes determined whether the
respective data items were output to the log. In ColdFusion MX, this data is always output.)
Attributes
Attribute
Req/Opt
text
Required
log
Optional
file
Optional
type
Optional
application
Optional
276
Chapter 2: ColdFusion Tags
cftable
,
thread
date
Default
Description
Message text to log.
If you omit the
log file. Ignored, if you specify
• Application: writes to Application.log, normally used for
application-specific messages.
• Scheduler: writes to Scheduler.log, normally used to log
the execution of scheduled tasks.
Message file. Specify only the main part of the filename. For
example, to log to the Testing.log file, specify "Testing".
The file must be located in the default log directory. You
cannot specify a directory path. If the file does not exist, it is
created automatically, with the suffix .log.
Information
Type (severity) of the message:
• Information
• Warning
• Error
• Fatal
yes
• yes: logs the application name, if it is specified in a
cfapplication
• no
, and
attributes. They might not work, and
time
attribute, writes messages to standard
file
file
tag or Application.cfc file.
attribute.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Colfusion mx 7 - installing and using coldfusion mx

Table of Contents