Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Corona » Corona vs log4j direct access
Corona vs log4j direct access [message #1747] Fri, 29 September 2006 14:10 Go to next message
Eclipse UserFriend
Originally posted by: claudemontpetit.gmail.com

Hi,

I am a little confused about the necessity of using Corona vs using log4j
directly.

In our new OSGi-based project, we need to pick a logging framework. We do
not care about abstracting it behind an interface that would allow us to
swap it later on. We can stick to the library will will choose to use. We
are leaning toward log4j.

My confusion is related to usage of the log4j API in the code. We have
some common class libraries that are coded with zero dependancies on OSGi.
They are packaged in an OSGi bundles afterward. Thus, they cannot use (nor
depend on) the OSGi log service interfaces.

How does this fit with Corona? Does the decision to use Corana implies
that all logging done by all bundles should know about the interfaces to
produce log?

I would like to allow the use of log4j directly without having to lookup
for the OSGi log service. I do not mind creating a dependancy on a log4j
OSGi bundle, but in the code, I still want to simply do this:

org.apache.log4j.Logger.getLogger("my.logger");

Is this possible? Will direct access to the log4j static instance somehow
hook into the corona bundle?

--
Claude
Re: Corona vs log4j direct access [message #1757 is a reply to message #1747] Fri, 29 September 2006 15:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: claudemontpetit.gmail.com

Oups... I think this was posted to the wrong group. I re-posted to the
equinox mailing list:

http://www.eclipse.org/newsportal/article.php?id=2158&gr oup=eclipse.technology.equinox#2158
Re: Corona vs log4j direct access [message #1764 is a reply to message #1757] Fri, 29 September 2006 20:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: claudemontpetit.gmail.com

> Oups... I think this was posted to the wrong group.

Now that I look further, I am not sure this was the wrong group to post
this after all... Is corona-logging part of this group?
Re: Corona vs log4j direct access [message #1779 is a reply to message #1764] Mon, 02 October 2006 14:11 Go to previous message
Dennis O'Flynn is currently offline Dennis O'FlynnFriend
Messages: 73
Registered: July 2009
Member
Corona is leveraging OSGi's logging service to post all logging events.
This will allow it use the native implementations of the OSGi logging
service and keep our logging independent upon any 3rd party logging tool.

Corona does deploy an OSGi bundle that provides an event handler to OSGi log
events. This bundle will use log4j to provide persistence of log events.

"Claude" <claudemontpetit@gmail.com> wrote in message
news:f4d9b1a3d9d2a2cecae2e31be93d3eac$1@www.eclipse.org...
>
>> Oups... I think this was posted to the wrong group.
>
> Now that I look further, I am not sure this was the wrong group to post
> this after all... Is corona-logging part of this group?
>
Previous Topic:Corona 1.0.0M4 Demo
Next Topic:Demo client cannot connect to server
Goto Forum:
  


Current Time: Fri Apr 19 23:37:57 GMT 2024

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

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

Back to the top