There have to be some reeeally stupid mistake done by me.
I tried to create another "dummy" class, inject it similar as is the
problematic one and logging works for the dummy one.
Only the specific one is still silent.

Here is the logging configuration. Of course I tried to setup camel
rootLogger to DEBUG, but the problem was still there.

# Root logger
log4j.rootLogger=INFO, out, osgi:*
log4j.throwableRenderer=org.apache.log4j.OsgiThrowableRenderer
log4j.logger.myproject=DEBUG, myproject

# Myproject appender
log4j.appender.myproject=org.apache.log4j.sift.MDCSiftingAppender
log4j.appender.myproject.key=camel.contextId
log4j.appender.myproject.default=unknown
log4j.appender.myproject.appender=org.apache.log4j.RollingFileAppender
log4j.appender.myproject.appender.layout=org.apache.log4j.PatternLayout
log4j.appender.myproject.appender.layout.ConversionPattern=%d{ABSOLUTE}
| %-5.5p | %X{camel.routeId} %X{bundle.version} | %m%n
log4j.appender.myproject.appender.file=${karaf.data}/log/myproject-$\\{camel.contextId\\}.log
log4j.appender.myproject.appender.append=true
log4j.appender.myproject.appender.maxFileSize=1MB
log4j.appender.myproject.appender.maxBackupIndex=10

All other configuration org.ops4j.pax.logging.cfg remained not touched.

On Mon, Oct 22, 2012 at 11:06 PM, Christian Müller
<christian.muel...@gmail.com> wrote:
> Could you share the complete logging configuration.
>
> Sent from a mobile device
> Am 22.10.2012 21:03 schrieb "Martin Stiborský" <martin.stibor...@gmail.com>:
>
>> Hello,
>> I have troubles with logging from a bean class that is injected to an
>> another class.
>> From the injected one, I can't see any log messages in the log file,
>> whereas from other classes (which are used in a route somehow with
>> beanRef for example)  there the logging works without problems.
>>
>> I was trying to change log level for spring framework, but it doesn't
>> helped.
>>
>> etc/org.ops4j.pax.logging.cfg
>>
>> log4j.logger.org.springframework=DEBUG, myCustomAppender
>>
>> What am I missing?
>>
>> Thanks guys!
>>
>> --
>> S pozdravem
>> Martin Stiborský
>>
>> Jabber: st...@njs.netlab.cz
>>



-- 
S pozdravem
Martin Stiborský

Jabber: st...@njs.netlab.cz

Reply via email to