Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] log4j and commons-logging

Hi Simon,

Thank you for the quick reply.

I created a fragment host that export log4j packages and log4j.properties file and set the Fragment-Host: org.apache.commons.logging. Still I couldn't observe the outputs as the given pattern in my log4j.properties file. Should I have to set the log4j  factory in service provider as well. Please be kind enough to guild me.

Thank you!

Saminda

On Tue, May 27, 2008 at 12:53 AM, Simon Kaegi <Simon_Kaegi@xxxxxxxxxx> wrote:

The commons logging bundle in Orbit does not automatically provide the log4j import.
If you want to take control and have all logging go through log4j then you can create a fragment for the commons logging bundle that explicitly adds the import.

HTH
-Simon

equinox-dev-bounces@xxxxxxxxxxx wrote on 05/26/2008 02:54:01 PM:



> Hi Devs,
>
> My plugin directory contain the commons-logging bundle from Orbit
> project. My logger impl needs to be comming from log4j. log4j bundle
> is available in the plugin dir too and I also copied this from Orbit
> project. I have created a Fragment-host bundle to attach log4j.
> properties file to log4j bundle. Though log4j bundle is available,
> commons-logging bundle wouldn't pick that and fallback to default
> impl. Am I doing something wrong here.
>
> Thank you!
>
> Saminda
> --
> Saminda Abeyruwan
>
> Senior Software Engineer
> WSO2 Inc. - www.wso2.org _______________________________________________
> equinox-dev mailing list
> equinox-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/equinox-dev


_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev




--
Saminda Abeyruwan

Senior Software Engineer
WSO2 Inc. - www.wso2.org

Back to the top