It depends which ConfigAdmin-frontend you are using. Disclaimer: I've only 
used pax-logging-logback by now.

For example, the documentation uses pax-confman which uses a certain file 
structure to map configuration files to services. As does 
felix-fileinstall, just with some different structure.

The important part is the PID, which is used to map a file to a service. In 
felix-fileinstall (which is what I usually use) you would create a file 
called *org.ops4j.pax.logging.cfg*. Within this file you place the 
configuration as you did.

Hope that helps

Am Mittwoch, 24. August 2016 18:36:48 UTC+2 schrieb iJava:
>
> Hi Matt,
>
> Thank you for your answer. No, I don't use karaf.
>
> On Wednesday, 24 August 2016 19:04:26 UTC+3, Matt Sicker wrote:
>>
>> Are  you using Karaf? If so, I know the file name is 
>> org.ops4j.pax.logging.cfg
>>
>> On 24 August 2016 at 09:51, iJava <[email protected]> wrote:
>>
>>> Hi all,
>>>
>>> I use pax-loggin 1.8.5. I installed and added two bundles - 
>>> pax-loggin-api and pax-logging-service. When I write something to log 
>>> it seems to work and the message goes to console. Now, I created 
>>> log4j.properties file with the following contents:
>>> log4j.rootLogger=ALL, NotConsole
>>> log4j.appender.NotConsole=org.apache.log4j.RollingFileAppender
>>> log4j.appender.NotConsole.fileName=/home/somepath/mylog.log
>>> log4j.appender.NotConsole.maxFileSize=20MB
>>>
>>> However, messages anyway go to console. It seems to me, that my 
>>> log4j.properties is ignored. Where should I place it to
>>> be read by pax-logging?
>>>
>>>
>>>
>>>
>>> -- 
>>> -- 
>>> ------------------
>>> 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.
>>>
>>
>>
>>
>> -- 
>> Matt Sicker <[email protected]>
>>
>

-- 
-- 
------------------
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