You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by daniel stieger <Da...@gmx.at> on 2017/11/29 16:42:15 UTC

Felix and Pax Logging

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-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Felix and Pax Logging

Posted by Erwin Hogeweg <er...@seecago.com>.
Daniel,

We have these in our startup script:
-Dfelix.fileinstall.dir=../../conf \
-Dlog4j.configuration=file:../../conf/org.ops4j.pax.logging.cfg \

Not even sure anymore if we need them both, but it works perfectly.

Hope this helps,

Erwin

On Nov 29, 2017, at 11:42, daniel stieger <Da...@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-unsubscribe@felix.apache.org<ma...@felix.apache.org>
For additional commands, e-mail: users-help@felix.apache.org<ma...@felix.apache.org>


Erwin Hogeweg
CTO
3690 Airport Road
Boca Raton, FL 33431
P. +1 (954) 556-6565
M. +1 (561) 306-7395
F. +1 (561) 948-2730
[Seecago]<http://www.seecago.com>

Re: Re: Felix and Pax Logging

Posted by Milen Dyankov <mi...@gmail.com>.
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 <Da...@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" <mi...@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 <Da...@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-unsubscribe@felix.apache.org
> > For additional commands, e-mail: users-help@felix.apache.org
> >
> >
>
>
> --
> http://about.me/milen[http://about.me/milen]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>


-- 
http://about.me/milen

Aw: Re: Felix and Pax Logging

Posted by daniel stieger <Da...@gmx.at>.

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" <mi...@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 <Da...@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-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>


--
http://about.me/milen[http://about.me/milen]

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Felix and Pax Logging

Posted by Milen Dyankov <mi...@gmail.com>.
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 <Da...@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-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>


-- 
http://about.me/milen