We're updating the issue view to help you get more done. 

Log4J1 MDCSiftingAppender can't use all MDC props to process filename

Description

E.g., this doesn't work:

1 2 3 4 log4j.appender.sift.key = bundle.name log4j.appender.sift.appender = org.apache.log4j.FileAppender log4j.appender.sift.appender.file = target/logs-log4j1/${bundle.id}-file-appender.log ...

Because only bundle.name (the key) is passed down to resolve the values. This would work:

1 log4j.appender.sift.appender.file = target/logs-log4j1/${bundle.name}-file-appender.log

Environment

None

Status

Assignee

Grzegorz Grzybek

Reporter

Grzegorz Grzybek

Labels

None

Fix versions

Priority

Major