Have you seen
http://karaf.922171.n3.nabble.com/Using-Log4j-mail-appender-in-Karaf-with-pax-logging-td3180892.html
It's about Karaf but I think the concept should apply to OSGi in general.

On Thu, Nov 30, 2017 at 1:19 PM, daniel stieger <daniel.stie...@gmx.at>
wrote:

>
>
> Hi Milen, hi Erwin,
>
> thanks for your comments. Indeed, i could get pax up and running with the
> config in the file-install dir, the pax itself in the bundles dir.
> Nevertheless, getting the smtp append up and running is realy tricky. I
> read a lot of stuff regarding the javax.activiation and javax.mail
> packages, which are not "out of the box" suitable for osgi..
>
> My struggle wil go on... i will try a couple of things.
>
> Thanks for your help,
> Daniel
>
>
> Gesendet: Mittwoch, 29. November 2017 um 19:49 Uhr
> Von: "Milen Dyankov" <milendyan...@gmail.com>
> An: users@felix.apache.org
> Betreff: Re: Felix and Pax Logging
> I think in order to do that you need FileInstall (
> http://felix.apache.org/documentation/subprojects/
> apache-felix-file-install.html).
> You need to configure it to watch the folder(s) you want via system
> property `felix.fileinstall.dir`.
> Then you can place a file `org.ops4j.pax.logging.cfg` in that folder and it
> should (re)configure Pax Logging.
>
> On Wed, Nov 29, 2017 at 5:42 PM, daniel stieger <daniel.stie...@gmx.at>
> wrote:
>
> >
> > Gentlemen,
> >
> > i feel realy bad to ask such a beginner s question, but after 4 hours i m
> > giving up.
> >
> > I just use a plain felix installation and added the config admin and the
> > pax logging framework (api + service). However, i have not found out how
> to
> > configure pax logging to use a file...
> >
> > * placed org.ops4j.pax.logging.properties file to ./confg
> > * placed org.ops4j.pax.logging.cfg file to ./bundle
> >
> > and to almost all other dirs .. .. i was able to
> > set org.ops4j.pax.logging.DefaultServiceLog.level=ERROR
> > int ./config/config.propeties That did work! also tried to adjust with
> > "org.ops4j.pax.logging.log4j.rootLogger = .... " in this very file ..
> > doesn't work either.
> >
> > How could i adjust the pax settings? Is there also a way to check those
> > settings via gogo shell?
> >
> >
> > Any hint apreciated ..
> > Daniel
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
> > For additional commands, e-mail: users-h...@felix.apache.org
> >
> >
>
>
> --
> http://about.me/milen[http://about.me/milen]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
> For additional commands, e-mail: users-h...@felix.apache.org
>
>


-- 
http://about.me/milen

Reply via email to