3 Aug 2011 18:58
[JIRA] Commented: (LBCLASSIC-275) LoggingEvent casts to LogbackMDCAdapter without checking
[
http://jira.qos.ch/browse/LBCLASSIC-275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12072#action_12072
]
Chris Dolan commented on LBCLASSIC-275:
---------------------------------------
Pretty please? I think my proposed implementation is low-risk and fairly straightforward. This one
glitch is blocking a Logback implementation of the PAX-Logging service, which currently uses log4j.
> LoggingEvent casts to LogbackMDCAdapter without checking
> --------------------------------------------------------
>
> Key: LBCLASSIC-275
> URL: http://jira.qos.ch/browse/LBCLASSIC-275
> Project: logback-classic
> Issue Type: Bug
> Affects Versions: 0.9.28
> Reporter: Chris Dolan
> Assignee: Ceki Gulcu
>
> LoggingEvent has this code:
> // ugly but under the circumstances acceptable
> LogbackMDCAdapter logbackMDCAdapter = (LogbackMDCAdapter) MDC
> .getMDCAdapter();
> mdcPropertyMap = logbackMDCAdapter.getPropertyMap();
> I'm trying to build a logback implementation of the OSGi pax-logging-service
(http://www.ops4j.org/projects/pax/logging/index.html). But I've got a problem that PAX exports
org.slf4j.impl with their own MDC adapter that fails this cast. Theirs has the nice feature that the OSGi
(Continue reading)
RSS Feed