Отслеживание журналов аннотаций ehcache spring

Я интегрировал банку аннотаций ehcache-spring-annotation с spring mvc 3.0.3 и spring secuirty 3.0.5, развернутыми на jboss.

Я не вижу никаких журналов ehcache по ссылке http://blog.goyello.com/2010/07/29/quick-start-with-ehcache-annotations-for-spring/, но я не получаю никаких ошибок.

У меня есть xmls, определенные как decibel-servlet decibel-context decibel-security web.xml

мой log4j.properties -----------------------

log4j.rootLogger=ОТЛАДКА, консоль

log4j.appender.console=org.apache.log4j.ConsoleAppender log4j.appender.console.Threshold=DEBUG

log4j.appender.console.layout=org.apache.log4j.PatternLayout log4j.appender.console.layout.ConversionPattern=%-5p [%c]: %m%n

log4j.logger.org.springframework=ИНФОРМАЦИЯ


person Rastogi Shobhit    schedule 25.06.2011    source источник


Ответы (1)


Попробуйте добавить что-то подобное в свой log4j.properties:

log4j.logger.net.sf.ehcache=DEBUG 
log4j.logger.net.sf.ehcache.config=DEBUG 
log4j.logger.net.sf.ehcache.distribution=DEBUG 
log4j.logger.net.sf.ehcache.code=DEBUG  
person abalogh    schedule 26.06.2011
comment
получение сейчас 23:16:40,328 ИНФОРМАЦИЯ [STDOUT] DEBUG [net.sf.ehcache.config.ConfigurationHelper]: C acheDecoratorFactory не настроен для defaultCache. Пропуск для «messagesCach e». - person Rastogi Shobhit; 27.06.2011
comment
мой ehcache.xml ‹?xml версия=1.0 кодировка=UTF-8?› ‹ehcache xmlns:xsi=w3.org/2001/XMLSchema-instance xsi:noNamespaceSchemaLocation=ehcache.org/ehcache.xsd› ‹defaultCache ever=true maxElementsInMemory=100 overflowToDisk=false /› ‹имя кеша=messageCache maxElementsInMemory=10 вечный=true overflowToDisk=false /› ‹имя кеша=messagesCache maxElementsInMemory=10 вечный=true overflowToDisk=false /› ‹ /ecache› - person Rastogi Shobhit; 27.06.2011