How do I configure log4j in Ant to log to a JMS queue???
Rohit B. Rai,
Cordys RD (India) Pvt. Ltd.
--
If you haven't found something you are willing to die for, you are not
fit to live!
It's not enough to just put it in the lib dir, you must include it in your
classpath.
Heri
-Original Message-
From: venkatlakshmi [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 29, 2006 1:55 PM
To: log4j-user@logging.apache.org
Subject: NoClassDefFound Error for
Yes, I have included it in the classpath also.
Still it gives me the error.
--- Bender Heri [EMAIL PROTECTED] wrote:
It's not enough to just put it in the lib dir, you
must include it in your classpath.
Heri
-Original Message-
From: venkatlakshmi
[mailto:[EMAIL PROTECTED]
I am trying to use Log4J for logging from Ant but it gives these errors.
log4j:WARN No appenders could be found for logger
(org.apache.tools.ant).
log4j:WARN Please initialize the log4j system properly.
I have created the log4j.properties file. Its contents are
log4j.rootCategory=file
Rohit,
This means that the log4j.properties file that you have created in NOT in the
classpath. Make it available in the classpath.
regards,
-Jaikiran
Rohit B Rai [EMAIL PROTECTED] wrote:
I am trying to use Log4J for logging from Ant but it gives these errors.
log4j:WARN No
This works:
[financing_tools_gcps] [LOGGER] [TIMESTAMP] *Severity * [NDC] MESSAGE
It's getting confused by the brackets around the severity field (there must be
a bug in the parsing logic).
Scott Deboy
COMOTIV SYSTEMS
111 SW Columbia Street Ste. 950
Portland, OR 97201
Telephone:
What does line 20 do? Does it configure Log4j? What JDK are you using? What,
exactly, does your classpath look like?
Jake
Quoting venkatlakshmi [EMAIL PROTECTED]:
Yes, I have included it in the classpath also.
Still it gives me the error.
--- Bender Heri [EMAIL PROTECTED] wrote:
It's
Hi,
I found the solution to the problem. While configuring
the classpath, I specified the directory where the jar
file is available and I did not specify the exact jar
file in the directory. Thats where the problem was.
Now after including the name of the jar file in the
directory, it works fine.
Correction..everything is working fine - you have to set your timestampformat
to match your input:
logformat:
[financing_tools_gcps] [LOGGER] [TIMESTAMP] [LEVEL] [Severity PROP(SEVERITY)]
[NDC] MESSAGE
timestampformat:
MM/dd HH:mm:ss
My previous post skipped over the LEVEL field...
Your
Thanks for the responses
I debugged it and found that it was not reading the configuration file.
It has to be done this way.
provide the full conf file URL!
=
D:\Working\netbeans\myAntRunnerset ANT_OPTS=-Dlog4j.debug
10 matches
Mail list logo