Forums Register Login

Log4j not printing file name

+Pie Number of slices to send: Send
Hi guys,
I am using log4j for logging. I am facing a weird issue. I compile and build my jar file for project using Eclipse. My log works perfectly fine. I get file name and line number in the output. I use this layout org.apache.log4j.PatternLayout. And here is the pattern I use.



When I try to build the project jar file using Ant and upon execution I do not get the file name and line number. Instead I get (?:?). I am lost finding out the reason. Really appreciate any insights.

Thanks,
A.
+Pie Number of slices to send: Send
Lalan,

I did give it a try both in a jar and normally, and it did print the filename and line number.

here's my configuration file, if that helps in any way
and the output:


Regards,
[ October 15, 2004: Message edited by: Pavan Kumar Panduga ]
This is my favorite tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1398 times.
Similar Threads
log4j not printing filename and line number in log file
Third party libraries and WSAD 5.1.0
Logging in a jar
Executable JAR File Problem
Questions about DVCS
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 07:40:30.