Hi there,
I'm struggling with logging in my appl. I'm able log my messages to Console
but not able to write my messages to file. Strange is that messages are
logged to file from Tapestry and Spring but my own messages are missing
there.
So in log file are only internal messages from Tapestry, Spring and so on.
For logging in my pages I inject Logger service by @Inject, in my services I
obtain logger like this:

logger = org.slf4j.LoggerFactory.getLogger(this.getClass()); 

 My log4j.properties:

log4j.rootLogger=ALL, Console, FILE

log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.layout.ConversionPattern=%d{ISO8601}-%c- %p --%m%n

log4j.appender.FILE=org.apache.log4j.RollingFileAppender
log4j.appender.FILE.append=true
log4j.appender.FILE.MaxFileSize=1MB
log4j.appender.FILE.MaxBackupIndex=5
log4j.appender.FILE.File=/home/libor/Temp/paWeb/log/paWeb.log
log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
log4j.appender.FILE.layout.ConversionPattern=%d{ISO8601}-%-5p [%t] %c{2} -
%m%n

log4j.category.net.gmc=trace
log4j.category.java.sql=warn
#log4j.category.org.apache.tapestry5=warn
#log4j.category.org.springframework=warn

If I uncomment last two lines, logging to log file stoped, in console
everything works great. Any ideas?

Libor
-- 
View this message in context: 
http://old.nabble.com/Logging-to-file-problem-tp28982316p28982316.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to