Hey Carol
Sorry if I could not state my problem scenario. Let me try to ellaborate this time.
I have been using log4j.properties & I want to convert it into log4j.xml.
Here is the log4j.properties file
--------------------------------------
#### Use two appenders, one to log to console, another to log to a file
log4j.rootCategory=debug, stdout, R
# Print only messages of priority WARN or higher for your category
log4j.category.your.category.name=WARN
# Specifically inherit the priority level
#log4j.category.your.category.name=INHERITED
#### First appender writes to console
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
#
Pattern to output the caller's file name and line number.
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n
#### Second appender writes to a file
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=C:\\Test\\EJBModule\\resources\\logtest.log
# Control the maximum log file size
log4j.appender.R.MaxFileSize=100KB
# Archive log files (one backup file here)
log4j.appender.R.MaxBackupIndex=1
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
---------------------------------------------------------------------------
Previously in a class called Logger.java I had the following code to read the log4j configuration properties file
PropertyConfigurator.configure("C:\\Test\\EJBModule\\resources\\log4j.properties");
-----------------------------------------------------------------------
What approach should i follow to read log4j.xml file. Is the above code enuf or do I need to code a xmlreader to read log4j.xml file
Kindly respond
Bye
Hari