Olá,
Estou usando o blank project do vraptor que já vem com o log4j.xml (na raiz do src), alterei ele para fazer o log do sql hibernate com o trace dos parametros. Mas não funciona e fica dando sempre este erro na abertura:
log4j:WARN No appenders could be found for logger (org.jboss.logging).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="stdout" class="org.apache.log4j.ConsoleAppender">
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{HH:mm:ss,SSS} %5p [%-20c{1}] %m%n" />
</layout>
</appender>
<category name="br.com.caelum.vraptor">
<priority value="INFO" />
<appender-ref ref="stdout" />
</category>
<category name="org.springframework">
<priority value="INFO" />
<appender-ref ref="stdout" />
</category>
<category name="org.hibernate.SQL">
<priority value="TRACE" />
</category>
<category name="org.hibernate.type">
<priority value="TRACE" />
</category>
</log4j:configuration>
Os logs saem assim:
Informações: Server startup in 4202 ms
Hibernate:
select
this_.idUsuario as idUsuario0_0_,
this_.ds_email as ds2_0_0_,
this_.nm_usuario as nm3_0_0_,
this_.ds_senha as ds4_0_0_,
this_.sn_liberado as sn5_0_0_
from
Usuario this_
where
this_.ds_email=?
and this_.ds_senha=?
Hibernate:
select
this_.idGrupoUsuario as idGrupoU1_2_0_,
this_.idGrupo as idGrupo2_0_,
this_.idUsuario as idUsuario2_0_
from
GRUPO_USUARIO this_
where
this_.idUsuario=?
Alguem sabe o que posso estar fazendo de errado?