You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by CLEMENT Jean-Philippe <je...@fr.thalesgroup.com> on 2014/08/26 08:51:59 UTC

Early logs

Dear Karaf,

I'm beginning to investigate on a logging issue. It seems early logs sent (from our bundles) when Karaf starts are redirected to the stdout instead of the log file.

Is this behavior possible and, if so, how to fix it?

JP

[@@ OPEN @@]

Re: Early logs

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
OK, thx, I'm investigating.

I keep you posted.

Regards
JB

On 08/26/2014 11:41 AM, CLEMENT Jean-Philippe wrote:
> 3.02 snapshot
>
> [@@ OPEN @@]
>
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
> Envoyé : mardi 26 août 2014 11:34
> À : user@karaf.apache.org
> Objet : Re: Early logs
>
> @JP, what's the Karaf version ? 3.0.1 ?
>
> Thanks,
> Regards
> JB
>
> On 08/26/2014 11:31 AM, Achim Nierbeck wrote:
>> Now that is interesting ....
>> I guess we need to verify this behaviour, but might be an issue after
>> restart onyl ... :)
>>
>> could you open a minor bug for this so we don't loose track of it.
>>
>> thanks, Achim
>>
>>
>> 2014-08-26 11:21 GMT+02:00 CLEMENT Jean-Philippe
>> <jean-philippe.clement@fr.thalesgroup.com
>> <ma...@fr.thalesgroup.com>>:
>>
>>      Bundle which is doing this is Level 80 :)____
>>
>>      __ __
>>
>>      JP____
>>
>>      __ __
>>
>>      [@@ OPEN @@]____
>>
>>      __ __
>>
>>      *De :*Achim Nierbeck [mailto:bcanhome@googlemail.com
>>      <ma...@googlemail.com>]
>>      *Envoyé :* mardi 26 août 2014 10:50
>>
>>
>>      *À :* user@karaf.apache.org <ma...@karaf.apache.org>
>>      *Objet :* Re: Early logs____
>>
>>      __ __
>>
>>      yeah, as long as the pax-logging bundle isn't started the default
>>      will take place and this one does log to sysout. ____
>>
>>      BUT the Pax Logging bundle is startlevel 2 and it's the second
>>      bundle to be installed so what are you guys doing with your bundles
>>      beeing started before that?____
>>
>>      __ __
>>
>>      regards, Achim____
>>
>>      __ __
>>
>>      2014-08-26 10:43 GMT+02:00 Jean-Baptiste Onofré <jb@nanthrax.net
>>      <ma...@nanthrax.net>>:____
>>
>>      I remember that we have something about the log in the Karaf Main
>>      (as the Pax Logging service is not yet there).
>>
>>      Let me take a look around that. I keep you posted.
>>
>>      Regards
>>      JB____
>>
>>
>>
>>      On 08/26/2014 10:41 AM, CLEMENT Jean-Philippe wrote:____
>>
>>      Yes,
>>
>>      After one or a couple of seconds all logs are sent to the karaf.log
>>      file as expected.
>>
>>      I'm wondering if sysouts may not come from logs sent when the bundle
>>      is first started (during startup)...
>>
>>      JP
>>
>>      [@@ THALES GROUP INTERNAL @@]
>>
>>
>>      -----Message d'origine-----
>>      De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>>      <ma...@nanthrax.net>]
>>      Envoyé : mardi 26 août 2014 10:33
>>      À : user@karaf.apache.org <ma...@karaf.apache.org>
>>      Objet : Re: Early logs
>>
>>      It's weird, as I don't have it locally.
>>
>>      Are you sure to not have a SystemOut appender in
>>      org.ops4j.pax.logging.cfg or another log config ?
>>
>>      Regards
>>      JB
>>
>>      On 08/26/2014 10:12 AM, CLEMENT Jean-Philippe wrote:____
>>
>>      Traces on the screen (stdout) look like :
>>
>>      10:03:55 [FelixStartLevel] DEBUG – manage client XXX
>>
>>                     10:03:56 [Blueprint Extender: 3] DEBUG –
>> Initializing XXX
>>
>>                     10:03:56 [Blueprint Extender: 2] DEBUG – Allocating
>> XXX
>>
>>      JP
>>
>>      [@@ OPEN @@]
>>
>>      *De :*Achim Nierbeck [mailto:bcanhome@googlemail.com
>>      <ma...@googlemail.com>] *Envoyé :* mardi
>>      26 août 2014 10:02 *À :* user@karaf.apache.org
>>      <ma...@karaf.apache.org> *Objet :* RE: Early
>>      logs
>>
>>      If it's on the console it might well be a sysout? I'd try to check that.
>>
>>      Regards, achim
>>
>>      sent from mobile device
>>
>>      Am 26.08.2014 09:46 schrieb "CLEMENT Jean-Philippe"
>>      <jean-philippe.clement@fr.thalesgroup.com
>>      <ma...@fr.thalesgroup.com>
>>      <mailto:jean-philippe.clement@fr.thalesgroup.com
>>      <ma...@fr.thalesgroup.com>>>:
>>
>>      Karaf is started with the console (bin/karaf) but at startup some logs
>>      are displayed on the screen instead of being directed to the
>>      karaf.log file.
>>
>>      There is no tweak to the logging configuration file and the logger
>>      used is Log4J. Those logs come from a bundle which wraps a library
>>      coming from another team, so I'm not too sure what is happening.
>>
>>      I guess Karaf logging is ready before the first user bundle is
>>      started, correct?
>>
>>      Regards,
>>      JP
>>
>>      [@@ OPEN @@]
>>
>>
>>      -----Message d'origine-----
>>      De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>>      <ma...@nanthrax.net>
>>      <mailto:jb@nanthrax.net <ma...@nanthrax.net>>] Envoyé : mardi 26
>>      août 2014 08:55 À :
>>      user@karaf.apache.org <ma...@karaf.apache.org>
>>      <mailto:user@karaf.apache.org <ma...@karaf.apache.org>> Objet
>>      : Re: Early
>>      logs
>>
>>      Hi JP,
>>
>>      don't you use bin/start to run Karaf ?
>>
>>      If so, stdout is redirect to data/karaf.out. Is it what you talk about ?
>>
>>      What's the logger you use in your bundle and did you tweak
>>      etc/org.ops4j.pax.logging.cfg ?
>>
>>      Regards
>>      JB
>>
>>      On 08/26/2014 08:51 AM, CLEMENT Jean-Philippe wrote:
>>         > Dear Karaf,
>>         >
>>         > I'm beginning to investigate on a logging issue. It seems early
>>      logs sent (from our bundles) when Karaf starts are redirected to the
>>      stdout instead of the log file.
>>         >
>>         > Is this behavior possible and, if so, how to fix it?
>>         >
>>         > JP
>>         >
>>         > [@@ OPEN @@]
>>         >
>>
>>      --
>>      Jean-Baptiste Onofré
>>      jbonofre@apache.org <ma...@apache.org>
>>      <mailto:jbonofre@apache.org <ma...@apache.org>>
>>      http://blog.nanthrax.net Talend - http://www.talend.com____
>>
>>      __ __
>>
>>
>>      --
>>      Jean-Baptiste Onofré
>>      jbonofre@apache.org <ma...@apache.org>
>>      http://blog.nanthrax.net
>>      Talend - http://www.talend.com____
>>
>>
>>
>>      ____
>>
>>      __ __
>>
>>      -- ____
>>
>>
>>      Apache Member____
>>
>>      Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>      OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>>      Committer & Project Lead
>>      blog <http://notizblog.nierbeck.de/>____
>>
>>      __ __
>>
>>      Software Architect / Project Manager / Scrum Master____
>>
>>      __ __
>>
>>
>>
>>
>> --
>>
>> Apache Member
>> Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web
>> <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project
>> Lead blog <http://notizblog.nierbeck.de/>
>>
>> Software Architect / Project Manager / Scrum Master
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

RE: Early logs

Posted by CLEMENT Jean-Philippe <je...@fr.thalesgroup.com>.
3.02 snapshot

[@@ OPEN @@]


-----Message d'origine-----
De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] 
Envoyé : mardi 26 août 2014 11:34
À : user@karaf.apache.org
Objet : Re: Early logs

@JP, what's the Karaf version ? 3.0.1 ?

Thanks,
Regards
JB

On 08/26/2014 11:31 AM, Achim Nierbeck wrote:
> Now that is interesting ....
> I guess we need to verify this behaviour, but might be an issue after 
> restart onyl ... :)
>
> could you open a minor bug for this so we don't loose track of it.
>
> thanks, Achim
>
>
> 2014-08-26 11:21 GMT+02:00 CLEMENT Jean-Philippe 
> <jean-philippe.clement@fr.thalesgroup.com
> <ma...@fr.thalesgroup.com>>:
>
>     Bundle which is doing this is Level 80 :)____
>
>     __ __
>
>     JP____
>
>     __ __
>
>     [@@ OPEN @@]____
>
>     __ __
>
>     *De :*Achim Nierbeck [mailto:bcanhome@googlemail.com
>     <ma...@googlemail.com>]
>     *Envoyé :* mardi 26 août 2014 10:50
>
>
>     *À :* user@karaf.apache.org <ma...@karaf.apache.org>
>     *Objet :* Re: Early logs____
>
>     __ __
>
>     yeah, as long as the pax-logging bundle isn't started the default
>     will take place and this one does log to sysout. ____
>
>     BUT the Pax Logging bundle is startlevel 2 and it's the second
>     bundle to be installed so what are you guys doing with your bundles
>     beeing started before that?____
>
>     __ __
>
>     regards, Achim____
>
>     __ __
>
>     2014-08-26 10:43 GMT+02:00 Jean-Baptiste Onofré <jb@nanthrax.net
>     <ma...@nanthrax.net>>:____
>
>     I remember that we have something about the log in the Karaf Main
>     (as the Pax Logging service is not yet there).
>
>     Let me take a look around that. I keep you posted.
>
>     Regards
>     JB____
>
>
>
>     On 08/26/2014 10:41 AM, CLEMENT Jean-Philippe wrote:____
>
>     Yes,
>
>     After one or a couple of seconds all logs are sent to the karaf.log
>     file as expected.
>
>     I'm wondering if sysouts may not come from logs sent when the bundle
>     is first started (during startup)...
>
>     JP
>
>     [@@ THALES GROUP INTERNAL @@]
>
>
>     -----Message d'origine-----
>     De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>     <ma...@nanthrax.net>]
>     Envoyé : mardi 26 août 2014 10:33
>     À : user@karaf.apache.org <ma...@karaf.apache.org>
>     Objet : Re: Early logs
>
>     It's weird, as I don't have it locally.
>
>     Are you sure to not have a SystemOut appender in
>     org.ops4j.pax.logging.cfg or another log config ?
>
>     Regards
>     JB
>
>     On 08/26/2014 10:12 AM, CLEMENT Jean-Philippe wrote:____
>
>     Traces on the screen (stdout) look like :
>
>     10:03:55 [FelixStartLevel] DEBUG – manage client XXX
>
>                    10:03:56 [Blueprint Extender: 3] DEBUG – 
> Initializing XXX
>
>                    10:03:56 [Blueprint Extender: 2] DEBUG – Allocating 
> XXX
>
>     JP
>
>     [@@ OPEN @@]
>
>     *De :*Achim Nierbeck [mailto:bcanhome@googlemail.com
>     <ma...@googlemail.com>] *Envoyé :* mardi
>     26 août 2014 10:02 *À :* user@karaf.apache.org
>     <ma...@karaf.apache.org> *Objet :* RE: Early
>     logs
>
>     If it's on the console it might well be a sysout? I'd try to check that.
>
>     Regards, achim
>
>     sent from mobile device
>
>     Am 26.08.2014 09:46 schrieb "CLEMENT Jean-Philippe"
>     <jean-philippe.clement@fr.thalesgroup.com
>     <ma...@fr.thalesgroup.com>
>     <mailto:jean-philippe.clement@fr.thalesgroup.com
>     <ma...@fr.thalesgroup.com>>>:
>
>     Karaf is started with the console (bin/karaf) but at startup some logs
>     are displayed on the screen instead of being directed to the
>     karaf.log file.
>
>     There is no tweak to the logging configuration file and the logger
>     used is Log4J. Those logs come from a bundle which wraps a library
>     coming from another team, so I'm not too sure what is happening.
>
>     I guess Karaf logging is ready before the first user bundle is
>     started, correct?
>
>     Regards,
>     JP
>
>     [@@ OPEN @@]
>
>
>     -----Message d'origine-----
>     De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>     <ma...@nanthrax.net>
>     <mailto:jb@nanthrax.net <ma...@nanthrax.net>>] Envoyé : mardi 26
>     août 2014 08:55 À :
>     user@karaf.apache.org <ma...@karaf.apache.org>
>     <mailto:user@karaf.apache.org <ma...@karaf.apache.org>> Objet
>     : Re: Early
>     logs
>
>     Hi JP,
>
>     don't you use bin/start to run Karaf ?
>
>     If so, stdout is redirect to data/karaf.out. Is it what you talk about ?
>
>     What's the logger you use in your bundle and did you tweak
>     etc/org.ops4j.pax.logging.cfg ?
>
>     Regards
>     JB
>
>     On 08/26/2014 08:51 AM, CLEMENT Jean-Philippe wrote:
>        > Dear Karaf,
>        >
>        > I'm beginning to investigate on a logging issue. It seems early
>     logs sent (from our bundles) when Karaf starts are redirected to the
>     stdout instead of the log file.
>        >
>        > Is this behavior possible and, if so, how to fix it?
>        >
>        > JP
>        >
>        > [@@ OPEN @@]
>        >
>
>     --
>     Jean-Baptiste Onofré
>     jbonofre@apache.org <ma...@apache.org>
>     <mailto:jbonofre@apache.org <ma...@apache.org>>
>     http://blog.nanthrax.net Talend - http://www.talend.com____
>
>     __ __
>
>
>     --
>     Jean-Baptiste Onofré
>     jbonofre@apache.org <ma...@apache.org>
>     http://blog.nanthrax.net
>     Talend - http://www.talend.com____
>
>
>
>     ____
>
>     __ __
>
>     -- ____
>
>
>     Apache Member____
>
>     Apache Karaf <http://karaf.apache.org/> Committer & PMC
>     OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>     Committer & Project Lead
>     blog <http://notizblog.nierbeck.de/>____
>
>     __ __
>
>     Software Architect / Project Manager / Scrum Master____
>
>     __ __
>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web 
> <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project 
> Lead blog <http://notizblog.nierbeck.de/>
>
> Software Architect / Project Manager / Scrum Master
>

--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Early logs

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
@JP, what's the Karaf version ? 3.0.1 ?

Thanks,
Regards
JB

On 08/26/2014 11:31 AM, Achim Nierbeck wrote:
> Now that is interesting ....
> I guess we need to verify this behaviour, but might be an issue after
> restart onyl ... :)
>
> could you open a minor bug for this so we don't loose track of it.
>
> thanks, Achim
>
>
> 2014-08-26 11:21 GMT+02:00 CLEMENT Jean-Philippe
> <jean-philippe.clement@fr.thalesgroup.com
> <ma...@fr.thalesgroup.com>>:
>
>     Bundle which is doing this is Level 80 :)____
>
>     __ __
>
>     JP____
>
>     __ __
>
>     [@@ OPEN @@]____
>
>     __ __
>
>     *De :*Achim Nierbeck [mailto:bcanhome@googlemail.com
>     <ma...@googlemail.com>]
>     *Envoyé :* mardi 26 août 2014 10:50
>
>
>     *À :* user@karaf.apache.org <ma...@karaf.apache.org>
>     *Objet :* Re: Early logs____
>
>     __ __
>
>     yeah, as long as the pax-logging bundle isn't started the default
>     will take place and this one does log to sysout. ____
>
>     BUT the Pax Logging bundle is startlevel 2 and it's the second
>     bundle to be installed so what are you guys doing with your bundles
>     beeing started before that?____
>
>     __ __
>
>     regards, Achim____
>
>     __ __
>
>     2014-08-26 10:43 GMT+02:00 Jean-Baptiste Onofré <jb@nanthrax.net
>     <ma...@nanthrax.net>>:____
>
>     I remember that we have something about the log in the Karaf Main
>     (as the Pax Logging service is not yet there).
>
>     Let me take a look around that. I keep you posted.
>
>     Regards
>     JB____
>
>
>
>     On 08/26/2014 10:41 AM, CLEMENT Jean-Philippe wrote:____
>
>     Yes,
>
>     After one or a couple of seconds all logs are sent to the karaf.log
>     file as expected.
>
>     I'm wondering if sysouts may not come from logs sent when the bundle
>     is first started (during startup)...
>
>     JP
>
>     [@@ THALES GROUP INTERNAL @@]
>
>
>     -----Message d'origine-----
>     De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>     <ma...@nanthrax.net>]
>     Envoyé : mardi 26 août 2014 10:33
>     À : user@karaf.apache.org <ma...@karaf.apache.org>
>     Objet : Re: Early logs
>
>     It's weird, as I don't have it locally.
>
>     Are you sure to not have a SystemOut appender in
>     org.ops4j.pax.logging.cfg or another log config ?
>
>     Regards
>     JB
>
>     On 08/26/2014 10:12 AM, CLEMENT Jean-Philippe wrote:____
>
>     Traces on the screen (stdout) look like :
>
>     10:03:55 [FelixStartLevel] DEBUG – manage client XXX
>
>                    10:03:56 [Blueprint Extender: 3] DEBUG – Initializing XXX
>
>                    10:03:56 [Blueprint Extender: 2] DEBUG – Allocating XXX
>
>     JP
>
>     [@@ OPEN @@]
>
>     *De :*Achim Nierbeck [mailto:bcanhome@googlemail.com
>     <ma...@googlemail.com>] *Envoyé :* mardi
>     26 août 2014 10:02 *À :* user@karaf.apache.org
>     <ma...@karaf.apache.org> *Objet :* RE: Early
>     logs
>
>     If it's on the console it might well be a sysout? I'd try to check that.
>
>     Regards, achim
>
>     sent from mobile device
>
>     Am 26.08.2014 09:46 schrieb "CLEMENT Jean-Philippe"
>     <jean-philippe.clement@fr.thalesgroup.com
>     <ma...@fr.thalesgroup.com>
>     <mailto:jean-philippe.clement@fr.thalesgroup.com
>     <ma...@fr.thalesgroup.com>>>:
>
>     Karaf is started with the console (bin/karaf) but at startup some logs
>     are displayed on the screen instead of being directed to the
>     karaf.log file.
>
>     There is no tweak to the logging configuration file and the logger
>     used is Log4J. Those logs come from a bundle which wraps a library
>     coming from another team, so I'm not too sure what is happening.
>
>     I guess Karaf logging is ready before the first user bundle is
>     started, correct?
>
>     Regards,
>     JP
>
>     [@@ OPEN @@]
>
>
>     -----Message d'origine-----
>     De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>     <ma...@nanthrax.net>
>     <mailto:jb@nanthrax.net <ma...@nanthrax.net>>] Envoyé : mardi 26
>     août 2014 08:55 À :
>     user@karaf.apache.org <ma...@karaf.apache.org>
>     <mailto:user@karaf.apache.org <ma...@karaf.apache.org>> Objet
>     : Re: Early
>     logs
>
>     Hi JP,
>
>     don't you use bin/start to run Karaf ?
>
>     If so, stdout is redirect to data/karaf.out. Is it what you talk about ?
>
>     What's the logger you use in your bundle and did you tweak
>     etc/org.ops4j.pax.logging.cfg ?
>
>     Regards
>     JB
>
>     On 08/26/2014 08:51 AM, CLEMENT Jean-Philippe wrote:
>        > Dear Karaf,
>        >
>        > I'm beginning to investigate on a logging issue. It seems early
>     logs sent (from our bundles) when Karaf starts are redirected to the
>     stdout instead of the log file.
>        >
>        > Is this behavior possible and, if so, how to fix it?
>        >
>        > JP
>        >
>        > [@@ OPEN @@]
>        >
>
>     --
>     Jean-Baptiste Onofré
>     jbonofre@apache.org <ma...@apache.org>
>     <mailto:jbonofre@apache.org <ma...@apache.org>>
>     http://blog.nanthrax.net Talend - http://www.talend.com____
>
>     __ __
>
>
>     --
>     Jean-Baptiste Onofré
>     jbonofre@apache.org <ma...@apache.org>
>     http://blog.nanthrax.net
>     Talend - http://www.talend.com____
>
>
>
>     ____
>
>     __ __
>
>     -- ____
>
>
>     Apache Member____
>
>     Apache Karaf <http://karaf.apache.org/> Committer & PMC
>     OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>     Committer & Project Lead
>     blog <http://notizblog.nierbeck.de/>____
>
>     __ __
>
>     Software Architect / Project Manager / Scrum Master____
>
>     __ __
>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
> & Project Lead
> blog <http://notizblog.nierbeck.de/>
>
> Software Architect / Project Manager / Scrum Master
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Early logs

Posted by Achim Nierbeck <bc...@googlemail.com>.
Now that is interesting ....
I guess we need to verify this behaviour, but might be an issue after
restart onyl ... :)

could you open a minor bug for this so we don't loose track of it.

thanks, Achim


2014-08-26 11:21 GMT+02:00 CLEMENT Jean-Philippe <
jean-philippe.clement@fr.thalesgroup.com>:

> Bundle which is doing this is Level 80 :)
>
>
>
> JP
>
>
>
> [@@ OPEN @@]
>
>
>
> *De :* Achim Nierbeck [mailto:bcanhome@googlemail.com]
> *Envoyé :* mardi 26 août 2014 10:50
>
> *À :* user@karaf.apache.org
> *Objet :* Re: Early logs
>
>
>
> yeah, as long as the pax-logging bundle isn't started the default will
> take place and this one does log to sysout.
>
> BUT the Pax Logging bundle is startlevel 2 and it's the second bundle to
> be installed so what are you guys doing with your bundles beeing started
> before that?
>
>
>
> regards, Achim
>
>
>
> 2014-08-26 10:43 GMT+02:00 Jean-Baptiste Onofré <jb...@nanthrax.net>:
>
> I remember that we have something about the log in the Karaf Main (as the
> Pax Logging service is not yet there).
>
> Let me take a look around that. I keep you posted.
>
> Regards
> JB
>
>
>
> On 08/26/2014 10:41 AM, CLEMENT Jean-Philippe wrote:
>
> Yes,
>
> After one or a couple of seconds all logs are sent to the karaf.log file
> as expected.
>
> I'm wondering if sysouts may not come from logs sent when the bundle is
> first started (during startup)...
>
> JP
>
> [@@ THALES GROUP INTERNAL @@]
>
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
> Envoyé : mardi 26 août 2014 10:33
> À : user@karaf.apache.org
> Objet : Re: Early logs
>
> It's weird, as I don't have it locally.
>
> Are you sure to not have a SystemOut appender in org.ops4j.pax.logging.cfg
> or another log config ?
>
> Regards
> JB
>
> On 08/26/2014 10:12 AM, CLEMENT Jean-Philippe wrote:
>
> Traces on the screen (stdout) look like :
>
> 10:03:55 [FelixStartLevel] DEBUG – manage client XXX
>
>               10:03:56 [Blueprint Extender: 3] DEBUG – Initializing XXX
>
>               10:03:56 [Blueprint Extender: 2] DEBUG – Allocating XXX
>
> JP
>
> [@@ OPEN @@]
>
> *De :*Achim Nierbeck [mailto:bcanhome@googlemail.com] *Envoyé :* mardi
> 26 août 2014 10:02 *À :* user@karaf.apache.org *Objet :* RE: Early
> logs
>
> If it's on the console it might well be a sysout? I'd try to check that.
>
> Regards, achim
>
> sent from mobile device
>
> Am 26.08.2014 09:46 schrieb "CLEMENT Jean-Philippe"
> <jean-philippe.clement@fr.thalesgroup.com
> <ma...@fr.thalesgroup.com>>:
>
> Karaf is started with the console (bin/karaf) but at startup some logs
> are displayed on the screen instead of being directed to the karaf.log
> file.
>
> There is no tweak to the logging configuration file and the logger
> used is Log4J. Those logs come from a bundle which wraps a library
> coming from another team, so I'm not too sure what is happening.
>
> I guess Karaf logging is ready before the first user bundle is
> started, correct?
>
> Regards,
> JP
>
> [@@ OPEN @@]
>
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
> <ma...@nanthrax.net>] Envoyé : mardi 26 août 2014 08:55 À :
> user@karaf.apache.org <ma...@karaf.apache.org> Objet : Re: Early
> logs
>
> Hi JP,
>
> don't you use bin/start to run Karaf ?
>
> If so, stdout is redirect to data/karaf.out. Is it what you talk about ?
>
> What's the logger you use in your bundle and did you tweak
> etc/org.ops4j.pax.logging.cfg ?
>
> Regards
> JB
>
> On 08/26/2014 08:51 AM, CLEMENT Jean-Philippe wrote:
>   > Dear Karaf,
>   >
>   > I'm beginning to investigate on a logging issue. It seems early
> logs sent (from our bundles) when Karaf starts are redirected to the
> stdout instead of the log file.
>   >
>   > Is this behavior possible and, if so, how to fix it?
>   >
>   > JP
>   >
>   > [@@ OPEN @@]
>   >
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org <ma...@apache.org>
> http://blog.nanthrax.net Talend - http://www.talend.com
>
>
>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
>
>
>
>
> --
>
>
> Apache Member
>
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
> Project Lead
> blog <http://notizblog.nierbeck.de/>
>
>
>
> Software Architect / Project Manager / Scrum Master
>
>
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>

Software Architect / Project Manager / Scrum Master

RE: Early logs

Posted by CLEMENT Jean-Philippe <je...@fr.thalesgroup.com>.
Bundle which is doing this is Level 80 :)

JP

[@@ OPEN @@]

De : Achim Nierbeck [mailto:bcanhome@googlemail.com]
Envoyé : mardi 26 août 2014 10:50
À : user@karaf.apache.org
Objet : Re: Early logs

yeah, as long as the pax-logging bundle isn't started the default will take place and this one does log to sysout.
BUT the Pax Logging bundle is startlevel 2 and it's the second bundle to be installed so what are you guys doing with your bundles beeing started before that?

regards, Achim

2014-08-26 10:43 GMT+02:00 Jean-Baptiste Onofré <jb...@nanthrax.net>>:
I remember that we have something about the log in the Karaf Main (as the Pax Logging service is not yet there).

Let me take a look around that. I keep you posted.

Regards
JB


On 08/26/2014 10:41 AM, CLEMENT Jean-Philippe wrote:
Yes,

After one or a couple of seconds all logs are sent to the karaf.log file as expected.

I'm wondering if sysouts may not come from logs sent when the bundle is first started (during startup)...

JP

[@@ THALES GROUP INTERNAL @@]


-----Message d'origine-----
De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net<ma...@nanthrax.net>]
Envoyé : mardi 26 août 2014 10:33
À : user@karaf.apache.org<ma...@karaf.apache.org>
Objet : Re: Early logs

It's weird, as I don't have it locally.

Are you sure to not have a SystemOut appender in org.ops4j.pax.logging.cfg or another log config ?

Regards
JB

On 08/26/2014 10:12 AM, CLEMENT Jean-Philippe wrote:
Traces on the screen (stdout) look like :

10:03:55 [FelixStartLevel] DEBUG – manage client XXX

              10:03:56 [Blueprint Extender: 3] DEBUG – Initializing XXX

              10:03:56 [Blueprint Extender: 2] DEBUG – Allocating XXX

JP

[@@ OPEN @@]

*De :*Achim Nierbeck [mailto:bcanhome@googlemail.com<ma...@googlemail.com>] *Envoyé :* mardi
26 août 2014 10:02 *À :* user@karaf.apache.org<ma...@karaf.apache.org> *Objet :* RE: Early
logs

If it's on the console it might well be a sysout? I'd try to check that.

Regards, achim

sent from mobile device

Am 26.08.2014 09:46 schrieb "CLEMENT Jean-Philippe"
<je...@fr.thalesgroup.com>
<ma...@fr.thalesgroup.com>>>:

Karaf is started with the console (bin/karaf) but at startup some logs
are displayed on the screen instead of being directed to the karaf.log file.

There is no tweak to the logging configuration file and the logger
used is Log4J. Those logs come from a bundle which wraps a library
coming from another team, so I'm not too sure what is happening.

I guess Karaf logging is ready before the first user bundle is
started, correct?

Regards,
JP

[@@ OPEN @@]


-----Message d'origine-----
De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net<ma...@nanthrax.net>
<ma...@nanthrax.net>>] Envoyé : mardi 26 août 2014 08:55 À :
user@karaf.apache.org<ma...@karaf.apache.org> <ma...@karaf.apache.org>> Objet : Re: Early
logs

Hi JP,

don't you use bin/start to run Karaf ?

If so, stdout is redirect to data/karaf.out. Is it what you talk about ?

What's the logger you use in your bundle and did you tweak
etc/org.ops4j.pax.logging.cfg ?

Regards
JB

On 08/26/2014 08:51 AM, CLEMENT Jean-Philippe wrote:
  > Dear Karaf,
  >
  > I'm beginning to investigate on a logging issue. It seems early
logs sent (from our bundles) when Karaf starts are redirected to the
stdout instead of the log file.
  >
  > Is this behavior possible and, if so, how to fix it?
  >
  > JP
  >
  > [@@ OPEN @@]
  >

--
Jean-Baptiste Onofré
jbonofre@apache.org<ma...@apache.org> <ma...@apache.org>>
http://blog.nanthrax.net Talend - http://www.talend.com


--
Jean-Baptiste Onofré
jbonofre@apache.org<ma...@apache.org>
http://blog.nanthrax.net
Talend - http://www.talend.com



--

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead
blog <http://notizblog.nierbeck.de/>

Software Architect / Project Manager / Scrum Master


Re: Early logs

Posted by Achim Nierbeck <bc...@googlemail.com>.
yeah, as long as the pax-logging bundle isn't started the default will take
place and this one does log to sysout.
BUT the Pax Logging bundle is startlevel 2 and it's the second bundle to be
installed so what are you guys doing with your bundles beeing started
before that?

regards, Achim


2014-08-26 10:43 GMT+02:00 Jean-Baptiste Onofré <jb...@nanthrax.net>:

> I remember that we have something about the log in the Karaf Main (as the
> Pax Logging service is not yet there).
>
> Let me take a look around that. I keep you posted.
>
> Regards
> JB
>
>
> On 08/26/2014 10:41 AM, CLEMENT Jean-Philippe wrote:
>
>> Yes,
>>
>> After one or a couple of seconds all logs are sent to the karaf.log file
>> as expected.
>>
>> I'm wondering if sysouts may not come from logs sent when the bundle is
>> first started (during startup)...
>>
>> JP
>>
>> [@@ THALES GROUP INTERNAL @@]
>>
>>
>> -----Message d'origine-----
>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
>> Envoyé : mardi 26 août 2014 10:33
>> À : user@karaf.apache.org
>> Objet : Re: Early logs
>>
>> It's weird, as I don't have it locally.
>>
>> Are you sure to not have a SystemOut appender in
>> org.ops4j.pax.logging.cfg or another log config ?
>>
>> Regards
>> JB
>>
>> On 08/26/2014 10:12 AM, CLEMENT Jean-Philippe wrote:
>>
>>> Traces on the screen (stdout) look like :
>>>
>>> 10:03:55 [FelixStartLevel] DEBUG – manage client XXX
>>>
>>>               10:03:56 [Blueprint Extender: 3] DEBUG – Initializing XXX
>>>
>>>               10:03:56 [Blueprint Extender: 2] DEBUG – Allocating XXX
>>>
>>> JP
>>>
>>> [@@ OPEN @@]
>>>
>>> *De :*Achim Nierbeck [mailto:bcanhome@googlemail.com] *Envoyé :* mardi
>>> 26 août 2014 10:02 *À :* user@karaf.apache.org *Objet :* RE: Early
>>> logs
>>>
>>> If it's on the console it might well be a sysout? I'd try to check that.
>>>
>>> Regards, achim
>>>
>>> sent from mobile device
>>>
>>> Am 26.08.2014 09:46 schrieb "CLEMENT Jean-Philippe"
>>> <jean-philippe.clement@fr.thalesgroup.com
>>> <ma...@fr.thalesgroup.com>>:
>>>
>>> Karaf is started with the console (bin/karaf) but at startup some logs
>>> are displayed on the screen instead of being directed to the karaf.log
>>> file.
>>>
>>> There is no tweak to the logging configuration file and the logger
>>> used is Log4J. Those logs come from a bundle which wraps a library
>>> coming from another team, so I'm not too sure what is happening.
>>>
>>> I guess Karaf logging is ready before the first user bundle is
>>> started, correct?
>>>
>>> Regards,
>>> JP
>>>
>>> [@@ OPEN @@]
>>>
>>>
>>> -----Message d'origine-----
>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>>> <ma...@nanthrax.net>] Envoyé : mardi 26 août 2014 08:55 À :
>>> user@karaf.apache.org <ma...@karaf.apache.org> Objet : Re: Early
>>> logs
>>>
>>> Hi JP,
>>>
>>> don't you use bin/start to run Karaf ?
>>>
>>> If so, stdout is redirect to data/karaf.out. Is it what you talk about ?
>>>
>>> What's the logger you use in your bundle and did you tweak
>>> etc/org.ops4j.pax.logging.cfg ?
>>>
>>> Regards
>>> JB
>>>
>>> On 08/26/2014 08:51 AM, CLEMENT Jean-Philippe wrote:
>>>   > Dear Karaf,
>>>   >
>>>   > I'm beginning to investigate on a logging issue. It seems early
>>> logs sent (from our bundles) when Karaf starts are redirected to the
>>> stdout instead of the log file.
>>>   >
>>>   > Is this behavior possible and, if so, how to fix it?
>>>   >
>>>   > JP
>>>   >
>>>   > [@@ OPEN @@]
>>>   >
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org <ma...@apache.org>
>>> http://blog.nanthrax.net Talend - http://www.talend.com
>>>
>>>
>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>

Software Architect / Project Manager / Scrum Master

Re: Early logs

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
I remember that we have something about the log in the Karaf Main (as 
the Pax Logging service is not yet there).

Let me take a look around that. I keep you posted.

Regards
JB

On 08/26/2014 10:41 AM, CLEMENT Jean-Philippe wrote:
> Yes,
>
> After one or a couple of seconds all logs are sent to the karaf.log file as expected.
>
> I'm wondering if sysouts may not come from logs sent when the bundle is first started (during startup)...
>
> JP
>
> [@@ THALES GROUP INTERNAL @@]
>
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
> Envoyé : mardi 26 août 2014 10:33
> À : user@karaf.apache.org
> Objet : Re: Early logs
>
> It's weird, as I don't have it locally.
>
> Are you sure to not have a SystemOut appender in org.ops4j.pax.logging.cfg or another log config ?
>
> Regards
> JB
>
> On 08/26/2014 10:12 AM, CLEMENT Jean-Philippe wrote:
>> Traces on the screen (stdout) look like :
>>
>> 10:03:55 [FelixStartLevel] DEBUG – manage client XXX
>>
>>               10:03:56 [Blueprint Extender: 3] DEBUG – Initializing XXX
>>
>>               10:03:56 [Blueprint Extender: 2] DEBUG – Allocating XXX
>>
>> JP
>>
>> [@@ OPEN @@]
>>
>> *De :*Achim Nierbeck [mailto:bcanhome@googlemail.com] *Envoyé :* mardi
>> 26 août 2014 10:02 *À :* user@karaf.apache.org *Objet :* RE: Early
>> logs
>>
>> If it's on the console it might well be a sysout? I'd try to check that.
>>
>> Regards, achim
>>
>> sent from mobile device
>>
>> Am 26.08.2014 09:46 schrieb "CLEMENT Jean-Philippe"
>> <jean-philippe.clement@fr.thalesgroup.com
>> <ma...@fr.thalesgroup.com>>:
>>
>> Karaf is started with the console (bin/karaf) but at startup some logs
>> are displayed on the screen instead of being directed to the karaf.log file.
>>
>> There is no tweak to the logging configuration file and the logger
>> used is Log4J. Those logs come from a bundle which wraps a library
>> coming from another team, so I'm not too sure what is happening.
>>
>> I guess Karaf logging is ready before the first user bundle is
>> started, correct?
>>
>> Regards,
>> JP
>>
>> [@@ OPEN @@]
>>
>>
>> -----Message d'origine-----
>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>> <ma...@nanthrax.net>] Envoyé : mardi 26 août 2014 08:55 À :
>> user@karaf.apache.org <ma...@karaf.apache.org> Objet : Re: Early
>> logs
>>
>> Hi JP,
>>
>> don't you use bin/start to run Karaf ?
>>
>> If so, stdout is redirect to data/karaf.out. Is it what you talk about ?
>>
>> What's the logger you use in your bundle and did you tweak
>> etc/org.ops4j.pax.logging.cfg ?
>>
>> Regards
>> JB
>>
>> On 08/26/2014 08:51 AM, CLEMENT Jean-Philippe wrote:
>>   > Dear Karaf,
>>   >
>>   > I'm beginning to investigate on a logging issue. It seems early
>> logs sent (from our bundles) when Karaf starts are redirected to the
>> stdout instead of the log file.
>>   >
>>   > Is this behavior possible and, if so, how to fix it?
>>   >
>>   > JP
>>   >
>>   > [@@ OPEN @@]
>>   >
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org <ma...@apache.org>
>> http://blog.nanthrax.net Talend - http://www.talend.com
>>
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

RE: Early logs

Posted by CLEMENT Jean-Philippe <je...@fr.thalesgroup.com>.
Yes,

After one or a couple of seconds all logs are sent to the karaf.log file as expected.

I'm wondering if sysouts may not come from logs sent when the bundle is first started (during startup)...

JP

[@@ THALES GROUP INTERNAL @@]


-----Message d'origine-----
De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] 
Envoyé : mardi 26 août 2014 10:33
À : user@karaf.apache.org
Objet : Re: Early logs

It's weird, as I don't have it locally.

Are you sure to not have a SystemOut appender in org.ops4j.pax.logging.cfg or another log config ?

Regards
JB

On 08/26/2014 10:12 AM, CLEMENT Jean-Philippe wrote:
> Traces on the screen (stdout) look like :
>
> 10:03:55 [FelixStartLevel] DEBUG – manage client XXX
>
>              10:03:56 [Blueprint Extender: 3] DEBUG – Initializing XXX
>
>              10:03:56 [Blueprint Extender: 2] DEBUG – Allocating XXX
>
> JP
>
> [@@ OPEN @@]
>
> *De :*Achim Nierbeck [mailto:bcanhome@googlemail.com] *Envoyé :* mardi 
> 26 août 2014 10:02 *À :* user@karaf.apache.org *Objet :* RE: Early 
> logs
>
> If it's on the console it might well be a sysout? I'd try to check that.
>
> Regards, achim
>
> sent from mobile device
>
> Am 26.08.2014 09:46 schrieb "CLEMENT Jean-Philippe"
> <jean-philippe.clement@fr.thalesgroup.com
> <ma...@fr.thalesgroup.com>>:
>
> Karaf is started with the console (bin/karaf) but at startup some logs 
> are displayed on the screen instead of being directed to the karaf.log file.
>
> There is no tweak to the logging configuration file and the logger 
> used is Log4J. Those logs come from a bundle which wraps a library 
> coming from another team, so I'm not too sure what is happening.
>
> I guess Karaf logging is ready before the first user bundle is 
> started, correct?
>
> Regards,
> JP
>
> [@@ OPEN @@]
>
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net 
> <ma...@nanthrax.net>] Envoyé : mardi 26 août 2014 08:55 À : 
> user@karaf.apache.org <ma...@karaf.apache.org> Objet : Re: Early 
> logs
>
> Hi JP,
>
> don't you use bin/start to run Karaf ?
>
> If so, stdout is redirect to data/karaf.out. Is it what you talk about ?
>
> What's the logger you use in your bundle and did you tweak 
> etc/org.ops4j.pax.logging.cfg ?
>
> Regards
> JB
>
> On 08/26/2014 08:51 AM, CLEMENT Jean-Philippe wrote:
>  > Dear Karaf,
>  >
>  > I'm beginning to investigate on a logging issue. It seems early 
> logs sent (from our bundles) when Karaf starts are redirected to the 
> stdout instead of the log file.
>  >
>  > Is this behavior possible and, if so, how to fix it?
>  >
>  > JP
>  >
>  > [@@ OPEN @@]
>  >
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org <ma...@apache.org> 
> http://blog.nanthrax.net Talend - http://www.talend.com
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Early logs

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
It's weird, as I don't have it locally.

Are you sure to not have a SystemOut appender in 
org.ops4j.pax.logging.cfg or another log config ?

Regards
JB

On 08/26/2014 10:12 AM, CLEMENT Jean-Philippe wrote:
> Traces on the screen (stdout) look like :
>
> 10:03:55 [FelixStartLevel] DEBUG – manage client XXX
>
>              10:03:56 [Blueprint Extender: 3] DEBUG – Initializing XXX
>
>              10:03:56 [Blueprint Extender: 2] DEBUG – Allocating XXX
>
> JP
>
> [@@ OPEN @@]
>
> *De :*Achim Nierbeck [mailto:bcanhome@googlemail.com]
> *Envoyé :* mardi 26 août 2014 10:02
> *À :* user@karaf.apache.org
> *Objet :* RE: Early logs
>
> If it's on the console it might well be a sysout? I'd try to check that.
>
> Regards, achim
>
> sent from mobile device
>
> Am 26.08.2014 09:46 schrieb "CLEMENT Jean-Philippe"
> <jean-philippe.clement@fr.thalesgroup.com
> <ma...@fr.thalesgroup.com>>:
>
> Karaf is started with the console (bin/karaf) but at startup some logs
> are displayed on the screen instead of being directed to the karaf.log file.
>
> There is no tweak to the logging configuration file and the logger used
> is Log4J. Those logs come from a bundle which wraps a library coming
> from another team, so I'm not too sure what is happening.
>
> I guess Karaf logging is ready before the first user bundle is started,
> correct?
>
> Regards,
> JP
>
> [@@ OPEN @@]
>
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net <ma...@nanthrax.net>]
> Envoyé : mardi 26 août 2014 08:55
> À : user@karaf.apache.org <ma...@karaf.apache.org>
> Objet : Re: Early logs
>
> Hi JP,
>
> don't you use bin/start to run Karaf ?
>
> If so, stdout is redirect to data/karaf.out. Is it what you talk about ?
>
> What's the logger you use in your bundle and did you tweak
> etc/org.ops4j.pax.logging.cfg ?
>
> Regards
> JB
>
> On 08/26/2014 08:51 AM, CLEMENT Jean-Philippe wrote:
>  > Dear Karaf,
>  >
>  > I'm beginning to investigate on a logging issue. It seems early logs
> sent (from our bundles) when Karaf starts are redirected to the stdout
> instead of the log file.
>  >
>  > Is this behavior possible and, if so, how to fix it?
>  >
>  > JP
>  >
>  > [@@ OPEN @@]
>  >
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org <ma...@apache.org>
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

RE: Early logs

Posted by CLEMENT Jean-Philippe <je...@fr.thalesgroup.com>.
Traces on the screen (stdout) look like :
            10:03:55 [FelixStartLevel] DEBUG – manage client XXX
            10:03:56 [Blueprint Extender: 3] DEBUG – Initializing XXX
            10:03:56 [Blueprint Extender: 2] DEBUG – Allocating XXX

JP

[@@ OPEN @@]

De : Achim Nierbeck [mailto:bcanhome@googlemail.com]
Envoyé : mardi 26 août 2014 10:02
À : user@karaf.apache.org
Objet : RE: Early logs


If it's on the console it might well be a sysout? I'd try to check that.

Regards, achim

sent from mobile device
Am 26.08.2014 09:46 schrieb "CLEMENT Jean-Philippe" <je...@fr.thalesgroup.com>>:
Karaf is started with the console (bin/karaf) but at startup some logs are displayed on the screen instead of being directed to the karaf.log file.

There is no tweak to the logging configuration file and the logger used is Log4J. Those logs come from a bundle which wraps a library coming from another team, so I'm not too sure what is happening.

I guess Karaf logging is ready before the first user bundle is started, correct?

Regards,
JP

[@@ OPEN @@]


-----Message d'origine-----
De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net<ma...@nanthrax.net>]
Envoyé : mardi 26 août 2014 08:55
À : user@karaf.apache.org<ma...@karaf.apache.org>
Objet : Re: Early logs

Hi JP,

don't you use bin/start to run Karaf ?

If so, stdout is redirect to data/karaf.out. Is it what you talk about ?

What's the logger you use in your bundle and did you tweak etc/org.ops4j.pax.logging.cfg ?

Regards
JB

On 08/26/2014 08:51 AM, CLEMENT Jean-Philippe wrote:
> Dear Karaf,
>
> I'm beginning to investigate on a logging issue. It seems early logs sent (from our bundles) when Karaf starts are redirected to the stdout instead of the log file.
>
> Is this behavior possible and, if so, how to fix it?
>
> JP
>
> [@@ OPEN @@]
>

--
Jean-Baptiste Onofré
jbonofre@apache.org<ma...@apache.org>
http://blog.nanthrax.net
Talend - http://www.talend.com

RE: Early logs

Posted by Achim Nierbeck <bc...@googlemail.com>.
If it's on the console it might well be a sysout? I'd try to check that.

Regards, achim

sent from mobile device
Am 26.08.2014 09:46 schrieb "CLEMENT Jean-Philippe" <
jean-philippe.clement@fr.thalesgroup.com>:

> Karaf is started with the console (bin/karaf) but at startup some logs are
> displayed on the screen instead of being directed to the karaf.log file.
>
> There is no tweak to the logging configuration file and the logger used is
> Log4J. Those logs come from a bundle which wraps a library coming from
> another team, so I'm not too sure what is happening.
>
> I guess Karaf logging is ready before the first user bundle is started,
> correct?
>
> Regards,
> JP
>
> [@@ OPEN @@]
>
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
> Envoyé : mardi 26 août 2014 08:55
> À : user@karaf.apache.org
> Objet : Re: Early logs
>
> Hi JP,
>
> don't you use bin/start to run Karaf ?
>
> If so, stdout is redirect to data/karaf.out. Is it what you talk about ?
>
> What's the logger you use in your bundle and did you tweak
> etc/org.ops4j.pax.logging.cfg ?
>
> Regards
> JB
>
> On 08/26/2014 08:51 AM, CLEMENT Jean-Philippe wrote:
> > Dear Karaf,
> >
> > I'm beginning to investigate on a logging issue. It seems early logs
> sent (from our bundles) when Karaf starts are redirected to the stdout
> instead of the log file.
> >
> > Is this behavior possible and, if so, how to fix it?
> >
> > JP
> >
> > [@@ OPEN @@]
> >
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

RE: Early logs

Posted by CLEMENT Jean-Philippe <je...@fr.thalesgroup.com>.
Karaf is started with the console (bin/karaf) but at startup some logs are displayed on the screen instead of being directed to the karaf.log file.

There is no tweak to the logging configuration file and the logger used is Log4J. Those logs come from a bundle which wraps a library coming from another team, so I'm not too sure what is happening.

I guess Karaf logging is ready before the first user bundle is started, correct?

Regards,
JP

[@@ OPEN @@]


-----Message d'origine-----
De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] 
Envoyé : mardi 26 août 2014 08:55
À : user@karaf.apache.org
Objet : Re: Early logs

Hi JP,

don't you use bin/start to run Karaf ?

If so, stdout is redirect to data/karaf.out. Is it what you talk about ?

What's the logger you use in your bundle and did you tweak etc/org.ops4j.pax.logging.cfg ?

Regards
JB

On 08/26/2014 08:51 AM, CLEMENT Jean-Philippe wrote:
> Dear Karaf,
>
> I'm beginning to investigate on a logging issue. It seems early logs sent (from our bundles) when Karaf starts are redirected to the stdout instead of the log file.
>
> Is this behavior possible and, if so, how to fix it?
>
> JP
>
> [@@ OPEN @@]
>

--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Early logs

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi JP,

don't you use bin/start to run Karaf ?

If so, stdout is redirect to data/karaf.out. Is it what you talk about ?

What's the logger you use in your bundle and did you tweak 
etc/org.ops4j.pax.logging.cfg ?

Regards
JB

On 08/26/2014 08:51 AM, CLEMENT Jean-Philippe wrote:
> Dear Karaf,
>
> I'm beginning to investigate on a logging issue. It seems early logs sent (from our bundles) when Karaf starts are redirected to the stdout instead of the log file.
>
> Is this behavior possible and, if so, how to fix it?
>
> JP
>
> [@@ OPEN @@]
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com