I think that simply putting log4j.xml in WEB-INF/classes folder does
the trick.

Br's,
Marius

On Jun 27, 3:06 am, Alan M <alan.morten...@gmail.com> wrote:
> I'm trying to enable log4j logging in a third party library (well
> third party to me.. it was developed in house) so that it logs it's
> output to the same place my Lift webapp logs.
>
> In the third party library, a log4j Logger is obtained and used but no
> setup is done, figuring the log4j config will be done by the app
> builder.
>
> Now I figured the root logger would catch it.. but it didn't seem to
> work.  So I added a specific logger with the exact string used in the
> third party code..  Still no output..
>
> Am I missing something about class loaders?  Or is there something
> about start-up that's messing with the getLogger method (it's actually
> in the method so it should be happening after Lift initializes
> everything)?  Or is there something else special about lift logging
> that won't let the library piggy back off of it?
>
> BTW, I should mention that Lift logging otherwise is working for me.
> By otherwise I mean when logging from any classes directly in the web-
> app classes directory.
>
> Alan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to