qianjava / ehcache-spring-annotations

Automatically exported from code.google.com/p/ehcache-spring-annotations
0 stars 0 forks source link

Logging is not working #37

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Logging is not working for cache. Whether is it useful to read log to 
troubleshoot issues or not that I do not know. Please advise on that too.

This is the log4j caching configuration.

log4j.logger.com.googlecode.ehcache=INFO,cache

log4j.appender.cache=org.apache.log4j.RollingFileAppender
log4j.appender.cache.File=${returnpath.logging.path}/PmsCache.log
log4j.appender.cache.MaxFileSize=10000KB
log4j.appender.cache.MaxBackupIndex=5
log4j.appender.cache.layout=org.apache.log4j.PatternLayout
log4j.appender.cache.layout.ConversionPattern=%d{DATE} %5p [%X] %c{1} - %m%n

What is the expected output? What do you see instead?

   Log should be written in file.

What version of the product are you using? On what operating system?

   1.1.1 and unix.

Please provide any additional information below.

   All the info are in #1

Original issue reported on code.google.com by bkbath...@gmail.com on 2 Jul 2010 at 6:18

GoogleCodeExporter commented 8 years ago
Are you including slf4j-log4j12-1.6.0.jar In your project. 
ehcache-spring-annotations uses SLF4j and does not explicitly declare a binding 
so you need to choose one of the bindings that SLF4j supports and include that: 
http://www.slf4j.org/manual.html

Original comment by eric.dalquist on 2 Jul 2010 at 7:26

GoogleCodeExporter commented 8 years ago
Assuming since there hasn't been an update that this was a project 
configuration issue and not a bug. If this is not the case leave a comment 
describing the continued issue and we can reopen.

Original comment by eric.dalquist on 4 Jul 2010 at 4:47