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.