tracker issue : CF-3864180

select a category, or use search below
(searches all categories and all time range)

Log4J patterns doesn't use text qualifiers for empty application names

| View in Tracker

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

Listed in the version 2016.0.0.297996 Issues Fixed doc
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:

Actual Result:

"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:

"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.



We will be fixing the text qualifier issue in a future release. However, changing neo-logging.xml to consolidate date & time properties would not affect any other ColdFusion services.
Comment by Immanuel N.
9601 | December 10, 2014 04:08:18 AM GMT
+1 ......................
Vote by External U.
9605 | January 06, 2015 02:44:23 AM GMT
Using empty quotes for application name when application name is empty.
Comment by Paul N.
9602 | September 25, 2015 08:21:58 AM GMT
By "empty", do you mean NULL? If application name doesn't exist (ie NULL), the logged string should be an empty string... just "", right?
Comment by External U.
9603 | September 25, 2015 09:50:39 AM GMT
James, If application name doesn't exist (ie NULL), the logged string is just "".
Comment by Immanuel N.
9604 | September 27, 2015 11:48:39 PM GMT