Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): James Moberg / James Moberg (James Moberg)
Created: 12/08/2014
Components: Logging
Versions: 11.0
Failure Type: Usability Issue
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Major / All users will encounter
Locale/System: ALL / Win 2008 Server R2 64 bit
Vote Count: 1
Problem Description:
The Log4J pattern doesn't use text qualifiers when logging an entry without an application name. This has caused an issue for me when ColdFusion log files are parsed by 3rd-Party Log4J software. (Many Log4J samples I've seen also don't separate the date & time into separate columns.)
Steps to Reproduce:
View your application.log file. The default configuration in neo-logging.xml is:
"%p","%t",%d{"MM/dd/yy","HH:mm:ss"},%a,"%m%x"%n
Actual Result:
"Severity","ThreadID","Date","Time","Application","Message"
"Information","http-bio-8500-exec-7","07/08/14","18:49:50",,"D:\ColdFusion11\cfusion\logs\application.log initialized"
"Information","http-bio-8500-exec-7","07/08/14","18:49:50",,"Session rotated successfully."
"Information","http-bio-8500-exec-7","07/08/14","18:49:50","CFADMIN","Invalid login for Default User"
Expected Result:
"Severity","ThreadID","Date","Time","Application","Message"
"Information","http-bio-8500-exec-7","07/08/14","18:49:50","","D:\ColdFusion11\cfusion\logs\application.log initialized"
"Information","http-bio-8500-exec-7","07/08/14","18:49:50","","Session rotated successfully."
"Information","http-bio-8500-exec-7","07/08/14","18:49:50","CFADMIN","Invalid login for Default User"
Any Workarounds:
Unsure. Not sure if this is a Log4J or ColdFusion issue. I'm not sure if changing default log settings (ie, additional consolidating date & time) would cause problems with other ColdFusion services (monitoring, etc.)
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3864180
External Customer Info:
External Company:
External Customer Name: Jamo
External Customer Email:
External Test Config: My Hardware and Environment details:
ColdFusion 8 through 11 all log empty application name values like this.
Attachments:
Comments: