Title:
[ANeff] Bug for: writeLog/cflog does not log application name when called within onApplicationEnd()
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 11/02/2014
Components: Logging
Versions: 11.0
Failure Type:
Found In Build/Fixed In Build: CF11_Final / CF11 Update5
Priority/Frequency: Minor / Very few users will encounter
Locale/System: English / Win All
Vote Count: 0
Repro:
<cfcomponent>
<cfscript>
THIS.name = "myAppName";
THIS.sessionManagement = true;
THIS.applicationTimeout = createTimeSpan(0,0,0,10);
THIS.sessionTimeout = createTimeSpan(0,0,0,5);
</cfscript>
<cffunction name="onApplicationStart">
<cfset writeLog("onApplicationStart() was called [writeLog()]", "information", true, THIS.name) />
<cflog text="onApplicationStart() was called [cflog]" type="information" application="true" file="#THIS.name#" />
<cfreturn true>
</cffunction>
<cffunction name="onSessionStart">
<cfset writeLog("onSessionStart() was called [writeLog()]", "information", true, THIS.name) />
<cflog text="onSessionStart() was called [cflog]" type="information" application="true" file="#THIS.name#" />
</cffunction>
<cffunction name="onRequestStart">
<cfset writeLog("onRequestStart() was called [writeLog()]", "information", true, THIS.name) />
<cflog text="onRequestStart() was called [cflog]" type="information" application="true" file="#THIS.name#" />
<cfreturn true>
</cffunction>
<cffunction name="onRequestEnd">
<cfset writeLog("onRequestEnd() was called [writeLog()]", "information", true, THIS.name) />
<cflog text="onRequestEnd() was called [cflog]" type="information" application="true" file="#THIS.name#" />/cffunction>
<cffunction name="onSessionEnd">
<cfset writeLog("onSessionEnd() was called [writeLog()]", "information", true, THIS.name) />
<cflog text="onSessionEnd() was called [cflog]" type="information" application="true" file="#THIS.name#" />
</cffunction>
<cffunction name="onApplicationEnd">
<cfset writeLog("onApplicationEnd() was called [writeLog()]", "information", true, THIS.name) />
<cflog text="onApplicationEnd() was called [cflog]" type="information" application="true" file="#THIS.name#" />
</cffunction>
</cfcomponent>
Actual Result: myAppName.log does not contain application name when writeLog()/cflog is called from within onApplicationEnd().
Expected Result: myAppName.log should contain application name when writeLog()/cflog is called from within onApplicationEnd().
Verified in 11.0.0.289822 and 11.0.03.291742.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3846187
External Customer Info:
External Company:
External Customer Name: itisdesign
External Customer Email:
Attachments:
Comments: