Issue Details (XML | Word | Printable)

Key: LOGCXX-22
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Curt Arnold
Reporter: Curt Arnold
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Log4cxx

Backslashes in filenames in XML config of FileAppender broken

Created: 09/Oct/04 02:12 PM   Updated: 11/Feb/05 11:49 AM
Return to search
Component/s: Appender
Affects Version/s: 0.9.7
Fix Version/s: 0.10.0

Time Tracking:
Not Specified

Resolution Date: 11/Feb/05 10:18 AM


 Description  « Hide
Backslashes in filenames in XML config files for FileAppenders are treated as escape characters which I thinkm but haven't confirmed, is inconsistent with log4j. Using forward slashes or double backslashes can work around the problem, but the double backslashes will no longer work after the problem is resolved.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Curt Arnold added a comment - 09/Feb/05 02:32 AM
The CVS HEAD also appears to have an issue if a drive designator other the the current default drive is used in the filespec.

Curt Arnold added a comment - 11/Feb/05 10:18 AM
Related log4j bug: http://issues.apache.org/bugzilla/show_bug.cgi?id=33485

With the 10 Feb 2005 patch, log4cxx no longer treats \ as a special character in XML configuration files. Two compensations were added to preserve compatibility with existing configurations, FileAppender::setOption will eliminate double backslashes from any specified file name and PatternLayout::setOption will process patterns with OptionConverter::convertSpecialCharacters.

With the patch, log4cxx's behavior is no longer compatible with log4j, but hopefully log4j will come into synch.

Curt Arnold added a comment - 11/Feb/05 11:49 AM