It's normal, the log:* commands uses the OSGi appender, not the file appender.

So, basically, your config should looks like:

log4j.rootLogger=INFO, out, osgi:*
log4j.throwableRenderer=org.apache.log4j.OsgiThrowableRenderer

log4j.logger.my.stuff=DEBUG, myappender, osgi:*

Regards
JB

On 10/13/2016 08:55 AM, conejo wrote:
I have entries in the log file.

I've configured my log:
# YAROKI file appender
log4j.appender.yaroki=org.apache.log4j.RollingFileAppender
log4j.appender.yaroki.threshold=DEBUG
log4j.appender.yaroki.layout=org.apache.log4j.PatternLayout
log4j.appender.yaroki.layout.ConversionPattern=%d{ISO8601} | %-5.5p |
%X{bundle.name} | %m%n
log4j.appender.yaroki.file=${karaf.data}/log/yaroki.log
log4j.appender.yaroki.append=true
log4j.appender.yaroki.maxFileSize=100MB
log4j.appender.yaroki.maxBackupIndex=10

Anyway, I understand that if I write "log:tail ALL" should show at least the
events seen in karaf.log, however if provoked events in karaf.log can see
them but not in the console.



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Log-commands-tp4048333p4048338.html
Sent from the Karaf - User mailing list archive at Nabble.com.


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

Reply via email to