Contents

cflog

Description

Writes a message to a log file.

Category

Other

Implemented

Usage Syntax

<cflog  
	text="String"
	[charset="String"]
	[log="String"]
	[file="String"]
	[type="String"]
	[thread="String"]
	[date="datetime"]
	[time="String"]
	[application="Boolean"]
 />

[] = Optional attribute

Attributes

Name Type Required Default Description
text String Yes The message text to log.
charset String No
log String No If you omit the file attribute, specifies the standard log file in which to write the message. Ignored if you specify a file attribute
file String No
type String No The type or severity of the message.
thread String No Specifies whether to log the thread ID. The thread ID identifies which internal service thread logged a message. Since a service thread normally services a CFML page request to completion, then moves on to the next queued request, the thread ID serves as a rough indication of which request logged a message. Leaving thread IDs turned on can help diagnose patterns of server activity.
date datetime No Specifies whether to log the system date.
time String No Specifies whether to log the system time.
application Boolean No Specifies whether to log the application name if one has been specified in a cfapplication tag.

Example Usage