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 ChangesPath
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 - 1.2
+++ logging.jsp 26 Feb 2002 08:54:12 - 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 @@
h2Activating the ttTRACE/tt Priority/h2
pActivating the ttTRACE/tt level priority is done by adding a
- category threshold statement to the ttlog4j.properties/tt file.
+ category threshold statement to the ttlog4j.xml/tt file.
To enable tracing for a particular ttJaasSecurityManager/tt security
domain called ttother/tt add:
+
+pre class=output
+ category name=org.jboss.security.plugins.JaasSecurityManager.other
+priority value=TRACE class=org.jboss.logging.XPriority/
+ /category
+/pre
+
+pTo enable the ttTRACE/tt level priority for all
+ ttJaasSecurityManager/tt instances add:
+pre class=output
+ category name=org.jboss.security.plugins.JaasSecurityManager
+priority value=TRACE class=org.jboss.logging.XPriority/
+ /category
+/pre
+
+pTo enable the ttTRACE/tt level priority for all components in the
+ ttsecurity/tt package:
+pre class=output
+ category name=org.jboss.security
+priority value=TRACE class=org.jboss.logging.XPriority/
+ /category
+/pre
+
+pYou 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 ttsecurity/tt output to a ttsecurity.log/tt file,
+ and set the security package threshold to ttTRACE/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
+
+pFor 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
pTo enable the ttTRACE/tt level priority for all
ttJaasSecurityManager/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
pTo enable the ttTRACE/tt level priority for all components in the
ttsecurity/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
pYou 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