tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitri Pissarenko <dmitri.pissare...@gmail.com>
Subject Logging with slf4j in Tomcat 7
Date Fri, 06 May 2011 15:56:08 GMT
Hello!

In my application I use slf4j for logging.

The logging messages appear in the console output like

17:05:31.985 ["http-bio-8080"-exec-1] DEBUG a.s.p.i.p.DefaultPersistence -
013.008: Daily plans (start)
17:05:31.985 ["http-bio-8080"-exec-1] DEBUG a.s.p.i.p.DefaultPersistence -
session: null
17:05:31.986 ["http-bio-8080"-exec-1] ERROR a.s.p.i.p.DefaultPersistence -
013.009

How can I configure Tomcat so that these log messages appear not only in
console output, but also in a log file?

Thanks in advance

Dmitri

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message