yes that solved the problem. Thanks.
One more question about this: I am trying to use the Log4j to log output
from code. My program name is checkRequest.java. When I set the log
level debug in log4j.xml it logs a lot of stuff related to
org.apache.commons.digester.Digester in addition to my log statements
(DEBUG [main] checkRequest (checkRequest.java). Anyway to disable the
logs for org.apache.commons.digester.Digester?
2009-01-25 12:52:11,687 DEBUG [main] checkRequest (checkRequest.java:38)
- Connecting to Test remedy
2009-01-25 12:52:11,929 DEBUG [main]
org.apache.commons.configuration.ConfigurationUtils
(ConfigurationUtils.java:515) - Configuration loade
d from the context classpath (arsys_base.xml)
2009-01-25 12:52:12,041 DEBUG [main]
org.apache.commons.digester.Digester (Digester.java:1249) -
setDocumentLocator(com.sun.org.apache.xerce
s.internal.parsers.abstractsaxparser$locatorpr...@1bc82e7)
2009-01-25 12:52:12,043 DEBUG [main]
org.apache.commons.digester.Digester (Digester.java:1283) - startDocument()
2009-01-25 12:52:12,046 DEBUG [main]
org.apache.commons.digester.Digester (Digester.java:1318) -
startElement(,,configuration)
My code has the following
public class checkRequest {
static Logger logger = Logger.getLogger("checkRequest.class");
public static void main(String args[]){
logger.debug("Connecting to Test remedy");
.
.
}
}
and my log4j.xml towards the end has
<!--Set root category priority to debug -->
<root>
<priority value ="debug" />
<appender-ref ref="Console" />
</root>
TIA
Ravi
LJ Longwing wrote:
Ravi,
You should find a file laying around your API named log4j.xml. Simply put
that in the same dir as your class files and you won't get that error
anymore.
-----Original Message-----
From: Action Request System discussion list(ARSList)
[mailto:[email protected]] On Behalf Of Ravi
Sent: Friday, January 23, 2009 8:33 AM
To: [email protected]
Subject: Java API: log4j:WARN Please initialize the log4j system properly.
Hi: I have some JAVA API scripts which print the following warnings when I
run the scripts. I know I have to configure log4j which I have never done
before. Can someone share their log4j configuration file and a sample code
remedy api code which uses log4j?
log4j:WARN No appenders could be found for logger
(com.bmc.arsys.api.Config).
log4j:WARN Please initialize the log4j system properly.
Thanks
--
Thank you,
RaVi
____________________________________________________________________________
___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor:
RMI Solutions ARSlist: "Where the Answers Are"
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: RMI Solutions ARSlist: "Where the Answers Are"
--
Thank you,
RaVi
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: RMI Solutions ARSlist: "Where the Answers Are"