Thanks for your help

My main app is in osgi using pax-exam-karaf 7.0.0.fuse-061 which is dependent 
on Pax-URL-mvn 1.3.5.  However I think the process that kicks that off is plain 
java and it is that where the logging problem is.

But to debug this logging problem I have tried plain java just using 
pax-URL-mvn 1.3.5 with a log4j properties file.

To get around this I reimplemented LogFactory.getLog to return an instance of 
Log4JLogger instead of the NullLog.  This works but produces duplicate log 
statements and is a bit of a hack

If I could look at the source I might be able to see why there is a different 
LogFactory in pax-URL-mvn 1.3.5

It is open source so I should be able to get it from somewhere?

Thanks

Sent from my iPhone

On 9 Oct 2012, at 10:27, Toni Menzel <[email protected]> wrote:

> you are running in an OSGI environment?
> Also, let us know which jars/bundles you are using actually.
> 
> Pax URL uses the slf4j api, so in regular java you can use any slf4j 
> connector (log4j if you want to).
> In OSGi suggest using pax-logging which bundles all logging streams from 
> different apis to the logservice. But first let us know how you are using it, 
> then we can help.
> 
> --
> Toni Menzel | Founder | Rebaze GmbH
> [email protected] | www.rebaze.com 
> Access To Alien Technology: Great software needs a great foundation. We help 
> unlocking the next level in technology.
> Rebaze Pass for Maven, Rebaze Pass for OSGi, Rebaze Pass for Neo4j, Rebaze 
> Pass for Jenkins
> 
> 
> 
> On Tue, Oct 9, 2012 at 11:06 AM, Jason North <[email protected]> 
> wrote:
> Hi
> 
> I am trying I get some logs from the class 
> org.ops4j.pax.url.mvn.internal.Connection
> 
> I have tried setting log4j properties as described in the docs but the logger 
> is always an instance of LogFactory$NullLog
> 
> Pax-URL-mvn seems to bundle a modified version of commons logging in the 
> classes but this is not in the sources.
> 
> Any ideas how I can setup logging or get the complete source for Pax-URL-mvn?
> 
> Many thanks
> Jason
> 
> 
> _______________________________________________
> general mailing list
> [email protected]
> http://lists.ops4j.org/mailman/listinfo/general
> 
> _______________________________________________
> general mailing list
> [email protected]
> http://lists.ops4j.org/mailman/listinfo/general
_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to