Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » log4j Unexpected Result
log4j Unexpected Result [message #106180] Wed, 12 March 2008 01:29 Go to next message
Jeff Lowcock is currently offline Jeff LowcockFriend
Messages: 17
Registered: July 2009
Junior Member
I have some project specific appenders that I need to use for a project so
I have included log4j as a runtime dependency in my plugin. This plugin
provides a simple wrapper around log4j and presents this wrapper to other
plugins for use.
Everything works as I expect except that time a new Logger is returned all
existing loggers take on the most recent category name in their loggers.
I suspect the interaction between osgi bundle class loaders and log4j and
yet I have no clues as to why this behaviour is occuring.
Does anyone have any hints about where I should look for these clues? I
am resisting the effort to trawl through the log4j code and I know other
people have used log4j so some pointers to where next would be appreciated.
Re: log4j Unexpected Result [message #106371 is a reply to message #106180] Fri, 14 March 2008 19:43 Go to previous message
Eclipse UserFriend
Originally posted by: jconlon.apache.org

Hi Jeff,

Did you build the log4j plugin yourself or are you using one of the
handful logging bundles that support log4j?

John


Jeff Lowcock wrote:
> I have some project specific appenders that I need to use for a project
> so I have included log4j as a runtime dependency in my plugin. This
> plugin provides a simple wrapper around log4j and presents this wrapper
> to other plugins for use.
> Everything works as I expect except that time a new Logger is returned
> all existing loggers take on the most recent category name in their
> loggers.
> I suspect the interaction between osgi bundle class loaders and log4j
> and yet I have no clues as to why this behaviour is occuring.
> Does anyone have any hints about where I should look for these clues? I
> am resisting the effort to trawl through the log4j code and I know other
> people have used log4j so some pointers to where next would be appreciated.
>
Previous Topic:Is this official API - IExtensionRegistry#addListener(IRegistryEventListener)?
Next Topic:RCP, eRCP, and OSGi best practices
Goto Forum:
  


Current Time: Sun Oct 24 01:26:42 GMT 2021

Powered by FUDForum. Page generated in 0.01416 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top