[jboss-user] [Installation, Configuration & Deployment] - Re: ERROR: invalid console appender config detected, console
shilpasrinivas
do-not-reply at jboss.com
Thu Sep 17 08:00:48 EDT 2009
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" xmlns="http://jakarta.apache.org/log4j/">
|
| <!-- Chainsaw is a graphical appender-->
| <appender name="ChainsawAppender" class="org.apache.log4j.net.SocketAppender">
| <param name="RemoteHost" value="localhost"/>
| <param name="Port" value="4445"/>
| <param name="LocationInfo" value="true"/>
| </appender>
|
| <!-- This is the Orbeon Forms Studio monitor -->
| <appender name="OPSMonitor" class="org.apache.log4j.net.SocketHubAppender">
| <param name="Port" value="4446"/>
| <param name="LocationInfo" value="true"/>
| <filter class="org.apache.log4j.varia.LevelRangeFilter">
| <param name="LevelMin" value="debug" />
| </filter>
| </appender>
|
| <!-- Logging to a single file, typically used in development when you don't want
| to be dealing with multiple files generated by the RollingFileAppender.
| See: http://logging.apache.org/log4j/docs/api/org/apache/log4j/FileAppender.html -->
| <appender name="SingleFileAppender" class="org.apache.log4j.FileAppender">
| <param name="File" value="../logs/orbeon.log"/>
| <param name="Append" value="false" />
| <layout class="org.apache.log4j.PatternLayout">
| <param name="ConversionPattern" value="%d{ISO8601} %-5p %c{1} %x - %m%n"/>
| </layout>
| </appender>
|
| <!-- Logging to a rolling files. Every time the file exceeds a certain size, a backup
| is created and the file used for logging is truncated.
| See: http://logging.apache.org/log4j/docs/api/org/apache/log4j/RollingFileAppender.html -->
| <appender name="RollingFileAppender" class="org.apache.log4j.RollingFileAppender">
| <param name="File" value="../logs/orbeon.log"/>
| <param name="MaxFileSize" value="5MB"/>
| <param name="MaxBackupIndex" value="5"/>
| <param name="Append" value="false" />
| <layout class="org.apache.log4j.PatternLayout">
| <param name="ConversionPattern" value="%d{ISO8601} %-5p %c{1} %x - %m%n"/>
| </layout>
| </appender>
| <category name="org.exist.storage.btree.Paged">
| <priority value="warn"/>
| </category>
|
| <category name="org.exist.storage.DBBroker">
| <priority value="warn"/>
| </category>
|
| <category name="org.exist.storage.BrokerPool">
| <priority value="warn"/>
| </category>
|
| <category name="com.app1">
| <priority value="info"/>
| <appender-ref ref="RollingFileAppender"></appender-ref>
| </category>
|
| <!-- You decide here which one of the loggers listed above you want to use. -->
| <root>
| <!--<appender-ref ref="ConsoleAppender"/>-->
| <!--<appender-ref ref="ChainsawAppender"/>-->
| <!--<appender-ref ref="SingleFileAppender"/>-->
| <appender-ref ref="RollingFileAppender"/>
| <!--<appender-ref ref="OPSMonitor"/>-->
| </root>
|
| </log4j:configuration>
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4255725#4255725
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4255725
More information about the jboss-user
mailing list