You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by kkashi <kk...@gmail.com> on 2010/05/18 23:28:17 UTC

log4j and karaf.log

Hello,

All help on the following is appreciated:

I have created my log4j.properties file and am trying to have my logs go
into a specific log file. However, they all go into karaf.log file. What
needs to be done to have them redirect to my own log file?

----- my properties file:
...
log4j.appender.F=org.apache.log4j.DailyRollingFileAppender
log4j.appender.F.File=/path/to/logfile/myLog.log
log4j.appender.F.layout=org.apache.log4j.PatternLayout
log4j.appender.F.layout.ConversionPattern=%d{ABSOLUTE} [%5p] - %m%n
log4j.appender.F.DatePattern='.'yyyy-MM-dd
...

Thanks in advance

-- 
View this message in context: http://old.nabble.com/log4j-and-karaf.log-tp28601599p28601599.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: log4j and karaf.log

Posted by kkashi <kk...@gmail.com>.
Thanks for the reply. However, isn't there a way to use our own properties in
the bundle? Below solution means that for every bundle, we need to update
$SMX4_HOME/etc/org.ops4j.pax.logging.cfg??

Thanks



Freeman Fang wrote:
> 
> Hi,
> 
> You should modify
> $SMX4_HOME/etc/org.ops4j.pax.logging.cfg
> 
> Freeman
> 
> On 2010-5-19, at 上午5:28, kkashi wrote:
> 
>>
>> Hello,
>>
>> All help on the following is appreciated:
>>
>> I have created my log4j.properties file and am trying to have my  
>> logs go
>> into a specific log file. However, they all go into karaf.log file.  
>> What
>> needs to be done to have them redirect to my own log file?
>>
>> ----- my properties file:
>> ...
>> log4j.appender.F=org.apache.log4j.DailyRollingFileAppender
>> log4j.appender.F.File=/path/to/logfile/myLog.log
>> log4j.appender.F.layout=org.apache.log4j.PatternLayout
>> log4j.appender.F.layout.ConversionPattern=%d{ABSOLUTE} [%5p] - %m%n
>> log4j.appender.F.DatePattern='.'yyyy-MM-dd
>> ...
>>
>> Thanks in advance
>>
>> -- 
>> View this message in context:
>> http://old.nabble.com/log4j-and-karaf.log-tp28601599p28601599.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
> 
> 
> -- 
> Freeman Fang
> ------------------------
> Open Source SOA: http://fusesource.com
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/log4j-and-karaf.log-tp28601599p28603376.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: log4j and karaf.log

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

You should modify
$SMX4_HOME/etc/org.ops4j.pax.logging.cfg

Freeman

On 2010-5-19, at 上午5:28, kkashi wrote:

>
> Hello,
>
> All help on the following is appreciated:
>
> I have created my log4j.properties file and am trying to have my  
> logs go
> into a specific log file. However, they all go into karaf.log file.  
> What
> needs to be done to have them redirect to my own log file?
>
> ----- my properties file:
> ...
> log4j.appender.F=org.apache.log4j.DailyRollingFileAppender
> log4j.appender.F.File=/path/to/logfile/myLog.log
> log4j.appender.F.layout=org.apache.log4j.PatternLayout
> log4j.appender.F.layout.ConversionPattern=%d{ABSOLUTE} [%5p] - %m%n
> log4j.appender.F.DatePattern='.'yyyy-MM-dd
> ...
>
> Thanks in advance
>
> -- 
> View this message in context: http://old.nabble.com/log4j-and-karaf.log-tp28601599p28601599.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>


-- 
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com