On Thu, 13 Oct 2011 15:36:29 -0300, Vangel V. Ajanovski <a...@ii.edu.mk>
wrote:
On 13.10.2011 13:45, Bo Gao wrote:
Hi,
I use Log4j in my application, I log things in to many files. And it
works perfectly in My Mac.
But when I deploy my application to Tomcat server on an Ubuntu machine,
all messages are logged to my rootLogger(catalina.out)
I think this is because SLF4J use java.util.logging, not log4j. How to
correct this.
(I use Logger.getLogger(xxx.class) somewhere in my code, this works,
use log4j. Logger created with @Inject not work.)
I have not come accross such problem and I host the application under
Tomcat 6 on Ubuntu (tried on 9, 10 and 11).
The log4j creates recoreds in the file that I have explicitly stated in
the properties with an absolute path.
I do use @Inject to create loggers in each page, so no problem with that
too.
log4j will be used by SLF4J when the slf4j-log4j adapter package is in the
classpath.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org