User Guide
CFML event gateway SendGatewayMessage data parameter 1053
The CFC method uses the OriginatorID and the message, file, and type fields of the CFEvent
parameter’s data field to specify the log file and message.
<cfcomponent>
<cffunction name="logEvent" output="no">
<cfargument name="CFEvent" type="struct" required="yes">
<cfscript>
if (NOT IsDefined("CFEvent.Data.file")) {
CFEvent.Data.file="defaultEventLog"; }
if (NOT IsDefined("CFEvent.Data.type")) {
CFEvent.Data.type="information"; }
</cfscript>
<cflog text="Message from #CFEvent.originatorID#: #CFEvent.Data.message#"
file="#CFEvent.data.file#" type="#CFEvent.Data.type#" >
</cffunction>
</cfcomponent>