User: phox Date: 01/02/24 13:13:43 Modified: log4j readme Log: Added constructor to start using configureAndWatch. Revision Changes Path 1.2 +13 -1 contrib/log4j/readme Index: readme =================================================================== RCS file: /products/cvs/ejboss/contrib/log4j/readme,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- readme 2001/02/23 22:56:07 1.1 +++ readme 2001/02/24 21:13:43 1.2 @@ -8,7 +8,7 @@ Put a file log4j.properties under conf/default or where you configure in Log4jService. -The start of jboss.jcml will be: +The start of jboss.conf will be: <MLET CODE = "org.jboss.logging.Logger" ARCHIVE="jboss.jar" CODEBASE="../../lib/ext/"> </MLET> @@ -25,5 +25,17 @@ .... <MLET CODE = "org.jboss.logging.FileLogging" ARCHIVE="jboss.jar" CODEBASE= ... + + +To start log4j with configureAndWatch (a thread will be created that will periodically check if config file has been created or modified) a second parameter is needed, example: + +<MLET CODE = "org.jboss.contrib.log4j.Log4jService" ARCHIVE="elog4j.jar" CODEBASE="../../lib/ext/"> + <ARG TYPE="java.lang.String" VALUE="../conf/legler/log4j.properties"> + <ARG TYPE="int" VALUE="60000"> +</MLET> + +will check log4j.properties each minute. + +
