The log4j config you shared only tells us what log level you have
configured for org.springframework classes.
I assume your bean doesn't belong to that package.

So, what log level is the rootLogger at, what package does your bean class
belong to that doesn't log, how is your myCustomAppender configured.
Perhaps you could just try:
log4j.logger.<package-name>=DEBUG

You could also turn on debug on log4j and see how it configures your
logging.
-Dlog4j.debug=true


2012/10/22 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
>

Reply via email to