tracker issue : CF-3678561

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

Hibernate ORM Log File

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/Duplicate

Reporter/Name(from Bugbase): Richard Herbert / Richard Herbert (Richard Herbert)

Created: 12/03/2013

Components: Logging

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: Final /

Priority/Frequency: Major / All users will encounter

Locale/System: English / Win 2008 Server R2 64 bit

Vote Count: 0

Duplicate ID:	CF-3588717

Problem Description:
It seems like the default setting for log4j "cfusion\lib\log4j.properties" has log4j.appender.HIBERNATECONSOLE.Append=true which causes the file "cfusion/logs/hibernatesql.log" to be written to whenever there is a ORM event.

Also the log rotation settings are commented out...

#log4j.appender.HIBERNATECONSOLE.MaxFileSize=500KB
#log4j.appender.HIBERNATECONSOLE.MaxBackupIndex=3

...which cause the single file to grow uncontrollably.

Steps to Reproduce:
Default ColdFusion 10 install.

Actual Result:
"cfusion\lib\log4j.properties"
log4j.appender.HIBERNATECONSOLE.Append=true
#log4j.appender.HIBERNATECONSOLE.MaxFileSize=500KB
#log4j.appender.HIBERNATECONSOLE.MaxBackupIndex=3

Expected Result:
"cfusion\lib\log4j.properties"
log4j.appender.HIBERNATECONSOLE.Append=false
log4j.appender.HIBERNATECONSOLE.MaxFileSize=500KB
log4j.appender.HIBERNATECONSOLE.MaxBackupIndex=3

Any Workarounds:
Manually update "cfusion\lib\log4j.properties" with the "Expected Result:"

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3678561

External Customer Info:
External Company:  
External Customer Name: Richard Herbert (UK)
External Customer Email:  
External Test Config: My Hardware and Environment details:



Windows 2008 R2 64 bit

Attachments:

Comments: