Re: Java API: log4j:WARN Please initialize the log4j system properly.

2009-01-25 Thread Ravi

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

 
 
   
   
 

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:arsl...@arslist.org] On Behalf Of Ravi
Sent: Friday, January 23, 2009 8:33 AM
To: arslist@ARSLIST.ORG
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"


Re: Java API: log4j:WARN Please initialize the log4j system properly.

2009-01-23 Thread Carey Matthew Black
A sample file can be found here: /api/lib/log4j.xml

Copy it to the same directory where your Java program lives.

See if that resolves your issue.

-- 
Carey Matthew Black
Remedy Skilled Professional (RSP)
ARS = Action Request System(Remedy)

Love, then teach
Solution = People + Process + Tools
Fast, Accurate, Cheap Pick two.



On Fri, Jan 23, 2009 at 10:33 AM, Ravi  wrote:
> 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"


Re: Java API: log4j:WARN Please initialize the log4j system properly.

2009-01-23 Thread LJ Longwing
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:arsl...@arslist.org] On Behalf Of Ravi
Sent: Friday, January 23, 2009 8:33 AM
To: arslist@ARSLIST.ORG
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"


Java API: log4j:WARN Please initialize the log4j system properly.

2009-01-23 Thread Ravi
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"