Hello,
Does anyone know if it's possible to configure Log4j in the
cas-server-3.4.2 log4j.xml file to output debug logging to the
console, in JBoss 5.1.0?
I have the cas server-3.4.2 running in isolation mode on JBoss 5.1.0
built using the Maven War Overlay method.

I can get the log output on the console if I comment out the log4j
config listener in the web.xml:
<listener>
 <listener-class>
  org.springframework.web.util.Log4jConfigListener
 </listener-class>
</listener>

but the problem with this is that the log configuration then has to be
controlled via <jboss-server>/conf/jboss-log4j.xml file.

If I leave in the log4j config listener, the debug log output comes
out in the cas.log file, defined in the RollingFileAppender in
log4j.xml, but not the console.

This is what I have for my loggers in log4j.xml in the cas-server:

<logger name="org.jasig" additivity="true">
 <level value="DEBUG" />
</logger>

<logger name="org.jasig.cas.web.flow" additivity="true">
 <level value="DEBUG" />
</logger>

<root>
 <level value="WARN"/>
 <appender-ref ref="console"/>
 <appender-ref ref="cas"/>
</root>

The rest if the log4.xml is the same as comes with the standard war
distribution.

Thanks
Andy B

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to