User: user57  
  Date: 02/02/26 00:54:12

  Modified:    src/docs/developers/guide logging.jsp
  Log:
   o updated for xml style (have not tested that this will render correctly)
  
  Revision  Changes    Path
  1.3       +52 -7     newsite/src/docs/developers/guide/logging.jsp
  
  Index: logging.jsp
  ===================================================================
  RCS file: /cvsroot/jboss/newsite/src/docs/developers/guide/logging.jsp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- logging.jsp       21 Nov 2001 03:21:09 -0000      1.2
  +++ logging.jsp       26 Feb 2002 08:54:12 -0000      1.3
  @@ -1,5 +1,5 @@
   <jsp:include page="/developers/head.jsp" flush="true"/>
  -<!-- $Id: logging.jsp,v 1.2 2001/11/21 03:21:09 user57 Exp $ -->
  +<!-- $Id: logging.jsp,v 1.3 2002/02/26 08:54:12 user57 Exp $ -->
   <jsp:include page="/developers/slogan.jsp" flush="true">
      <jsp:param name="SLOGAN" value="LOGGING GUIDE"/>
   </jsp:include>
  @@ -122,25 +122,70 @@
   <h2>Activating the <tt>TRACE</tt> Priority</h2>
   
   <p>Activating the <tt>TRACE</tt> level priority is done by adding a 
  -   category threshold statement to the <tt>log4j.properties</tt> file. 
  +   category threshold statement to the <tt>log4j.xml</tt> file. 
      To enable tracing for a particular <tt>JaasSecurityManager</tt> security 
      domain called <tt>other</tt> add:
  +
  +<pre class="output">
  +  <category name="org.jboss.security.plugins.JaasSecurityManager.other">
  +    <priority value="TRACE" class="org.jboss.logging.XPriority"/>
  +  </category>
  +</pre>
  +
  +<p>To enable the <tt>TRACE</tt> level priority for all 
  +   <tt>JaasSecurityManager</tt> instances add:
  +<pre class="output">
  +  <category name="org.jboss.security.plugins.JaasSecurityManager">
  +    <priority value="TRACE" class="org.jboss.logging.XPriority"/>
  +  </category>
  +</pre>
  +
  +<p>To enable the <tt>TRACE</tt> level priority for all components in the 
  +   <tt>security</tt> package:
  +<pre class="output">
  +  <category name="org.jboss.security">
  +    <priority value="TRACE" class="org.jboss.logging.XPriority"/>
  +  </category>
  +</pre>
  +
  +<p>You can also redirect a given categories message to a seperate log 
  +   file or endpoint by assiging it a different appender. For example, 
  +   to redirect all <tt>security</tt> output to a <tt>security.log</tt> file, 
  +   and set the security package threshold to <tt>TRACE</tt> use:
  +<pre class="output">
  +  <appender name="SECURIRTYLOG" class="org.apache.log4j.FileAppender">
  +    <param name="File" value="${jboss.home}/log/security.log"/>
  +    <param name="Append" value="false"/>
  +
  +    <layout class="org.apache.log4j.PatternLayout">
  +      <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
  +    </layout>            
  +  </appender>
  +
  +  <category name="org.jboss.security">
  +    <priority value="TRACE" class="org.jboss.logging.XPriority"/>
  +    <appender-ref ref="SECURIRTYLOG"/>
  +  </category>
  +</pre>
  +
  +<p>For properties style configuration (via log4j.properties):
      <pre class="output">
   log4j.category.org.jboss.security.plugins.JaasSecurityManager.other=\
  -    TRACE#org.jboss.logging.log4j.TracePriority
  +    TRACE#org.jboss.logging.XPriority
      </pre>
   
   <p>To enable the <tt>TRACE</tt> level priority for all 
      <tt>JaasSecurityManager</tt> instances add:
      <pre class="output">
   log4j.category.org.jboss.security.plugins.JaasSecurityManager=\
  -    TRACE#org.jboss.logging.log4j.TracePriority
  +    TRACE#org.jboss.logging.XPriority
      </pre>
   
   <p>To enable the <tt>TRACE</tt> level priority for all components in the 
      <tt>security</tt> package:
      <pre class="output">
  -log4j.category.org.jboss.security=TRACE#org.jboss.logging.log4j.TracePriority
  +log4j.category.org.jboss.security=\
  +    TRACE#org.jboss.logging.XPriority
      </pre>
   
   <p>You can also redirect a given categories message to a seperate log 
  @@ -150,12 +195,12 @@
      <pre class="output">
   ### The security.log file appender
   log4j.appender.SecurityLog=org.apache.log4j.FileAppender
  -log4j.appender.SecurityLog.File=../log/security.log
  +log4j.appender.SecurityLog.File=${jboss.home}/log/security.log
   log4j.appender.SecurityLog.layout=org.apache.log4j.PatternLayout
   log4j.appender.SecurityLog.layout.ConversionPattern=[%c{1}] %m%n
   log4j.appender.SecurityLog.Append=false
   log4j.category.org.jboss.security=\
  -    TRACE#org.jboss.logging.log4j.TracePriority, SecurityLog
  +    TRACE#org.jboss.logging.XPriority, SecurityLog
      </pre>
   
   <jsp:include page="/developers/navigation.jsp" flush="true"/>
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to