You should start pax-logging as early as possible. The bundles which are 
logging (e.g. pax-web) do not care if a log-service is available, they will 
just print to the console until pax-logging is ready.

When using BndTools you can arrange the startorder in the runbundles-list. 
Beware though that the order is changed when resolving the bundles. This 
has been fixed for the upcoming release 3.3)


Am Donnerstag, 25. August 2016 13:14:30 UTC+2 schrieb iJava:
>
> Hi Achim,
>
> Thank you for feedback. I think that felix.fileinstall and 
> felix.configadmin need some time. Somehow this way...
>
> On Thursday, 25 August 2016 13:59:50 UTC+3, Achim Nierbeck wrote:
>>
>> Might be, in Karaf the Pax-Logging bundles are started quite early ...
>>
>> regards, Achim 
>>
>>
>> 2016-08-25 12:19 GMT+02:00 iJava <[email protected]>:
>>
>>> I solved my problem. The issue was that pax-logging and log4j are not 
>>> immediately ready after pax logging api and service bundle started. They 
>>> need some time (1-3 seconds).
>>>
>>> I installed and started bundles one by one, and some bundles stated they 
>>> logging before pax-logging was ready - that's why I got DEBUG messages when 
>>> I didn't want to get them.
>>> Now I changed the sequence of bundle management and everything seems to 
>>> be fine.
>>>
>>> Are my explanations of the problem right? 
>>>
>>> On Wednesday, 24 August 2016 23:44:55 UTC+3, iJava wrote:
>>>>
>>>> Hi all,
>>>>
>>>> Could someone explain 1)what is org.ops4j.pax.logging.DefaultServiceLog 
>>>> , 2) how it is related with my configs for log4j and 3) what values 
>>>> it can have besides WARN and INFO. 
>>>>
>>>> I ask, because when I don't set it via system parameter to WARN OR INFO 
>>>> I get about 56000 lines of DEBUG.
>>>> Even if I set it to FATAL I anyway get 56000 lines in log of DEBUG. 
>>>>
>>> -- 
>>> -- 
>>> ------------------
>>> OPS4J - http://www.ops4j.org - [email protected]
>>>
>>> --- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "OPS4J" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> -- 
>>
>> 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/>
>> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>
>> Software Architect / Project Manager / Scrum Master 
>>
>>

-- 
-- 
------------------
OPS4J - http://www.ops4j.org - [email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to