I get duplicate entries in log file.
I put a <cflog> command in a tag called ccilog. This allows me to turn log entries on/off depending on a session variable, while still allowing the full functionality of the <cflog> command. When I use it, though, all my log entries are duplicated.
The full tag is this:
<cfparam name="Attributes.application" >
<cfparam name="Attributes.file" default="cci-out" >
<cfparam name="Attributes.text" >
<cfif ! isdefined("session.debug")>
<cfset session.debug = false>
</cfif>
<cfif session.debug>
<cflog application="#attributes.application#" file="#attributes.file#" text="#attributes.text#">
</cfif>An example call is this:
<cf_ccilog file="adipostlog" application="yes" text="Process Documents"/>The entry in adipostlog looks like this:
"Information","ajp-nio-127.0.0.1-8016-exec-8","04/13/21","16:11:04","CCI-QUASI","Process Documents"
"Information","ajp-nio-127.0.0.1-8016-exec-8","04/13/21","16:11:04","CCI-QUASI","Process Documents"If I replace my tag with a simple <cflog>, it works fine.
I would rather not wrap all my log entries with the <cfif>.
Any thoughts?
