-
1. Re: pax logging question
gmdavidson62 Jan 14, 2011 2:09 PM (in response to gmdavidson62)Any answers or things to try....please???
Thanks!
-
2. Re: pax logging question
ffang Jan 14, 2011 10:19 PM (in response to gmdavidson62)Hi,
Did you already actually use sift appender?
You need change default
log4j.rootLogger=INFO, out, osgi:VmLogAppender
to
log4j.rootLogger=INFO, sift, osgi:VmLogAppender
which will make log output file per bundle take effect.
Freeman
-
3. Re: pax logging question
gmdavidson62 Jan 18, 2011 7:52 AM (in response to ffang)Thank you for the response. This did get the bundle logging implemented/working.
However, my "test" bundle is still not logging.
This is from my pom:
<Import-Package>
.........
org.apache.log4j;version="1.2.9";provider=paxlogging;mandatory:=provider
</Import-Package>
I'm sure I'm missing something very simple.
Basically, I just want to have my bundle log to it's own log file, it doesn't matter how.
Thanks!
-
4. Re: pax logging question
gmdavidson62 Jan 21, 2011 9:57 AM (in response to ffang)Thanks for the answer, this did what I wanted. I had a typo...corrected that and now the logging per bundle is working. Thanks!!