[logback-dev] [Bug 48] New: Log4j Properties Translator does not correctly handle trailing spaces
bugzilla-daemon at pixie.qos.ch
bugzilla-daemon at pixie.qos.ch
Fri Mar 2 15:36:20 CET 2007
http://bugzilla.qos.ch/show_bug.cgi?id=48
Summary: Log4j Properties Translator does not correctly handle
trailing spaces
Product: logback-general
Version: unspecified
Platform: PC
OS/Version: Windows
Status: NEW
Severity: blocker
Priority: P1
Component: build-structure
AssignedTo: logback-dev at qos.ch
ReportedBy: noreply.ceki at qos.ch
When there a trailing spaces in the properties, the Log4j Properties
Translator does not work properly.
Conversion attempt with
log4j.rootLogger=DEBUG, D4
log4j.appender.D4=org.apache.log4j.ConsoleAppender
log4j.appender.D4.layout=org.apache.log4j.PatternLayout
log4j.appender.D4.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
yields:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="D4" class="org.apache.log4j.ConsoleAppender ">
<layout class="org.apache.log4j.PatternLayout ">
<ConversionPattern>%d [%t] %-5p %c - %m%n</ConversionPattern>
</layout>
</appender>
<root>
<level value="DEBUG"/>
<appender-ref ref="D4"/>
</root>
</configuration>
Notice the space characters after "ConsoleAppender" and
"PatternLayout". The space characters should be trimmed from the input
before doing the translation.
--
Configure bugmail: http://bugzilla.qos.ch/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the logback-dev
mailing list