It's not log4j's fault: whatever mechanism you're using to compile is not adding line-number debug information to your class files.
Try this link, but make sure you read all comments (the first couple of solutions are essentially correct but have spacing or syntax errors): http://www.jguru.com/faq/view.jsp?EID=1122360 Hope that helps, Zellyn Zellyn Hunter Enterprise Information and Technical Infrastructure Technical Services Contract (EITITS) Software Engineer 4 Phone: 404-498-3184 Fax: 404-498-3166 -----Original Message----- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 9:18 AM To: [EMAIL PROTECTED] Subject: Why does %L output as a question mark? I've searched Google without success on this issue. I am getting question marks where the line number should be in my log files. My setup is as follows; log4j.logger.com.cmp.newmedia.intranet.iq.logic.schedules=debug, SchedulesA log4j.appender.SchedulesA=org.apache.log4j.DailyRollingFileAppender log4j.appender.SchedulesA.File=d:/iq/logs/schedules.log log4j.appender.SchedulesA.layout=org.apache.log4j.PatternLayout log4j.appender.SchedulesA.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n log4j.appender.SchedulesA.DatePattern=.yyyy-MM-dd In my ScheduleLogic class in package com.cmp.newmedia.intranet.iq.logic.schedules I get the logger as follows; static Logger logger = Logger.getLogger(ScheduleLogic.class); and call it; logger.debug("list"); My statements come out as follows; 14:09:40,392 DEBUG ScheduleLogic:? - list This seems to be a widespread problem in all my logs but I run other software like Hibernate which manages to get line numbers into my logs using the same pattern! Your help appreciated, ADC. <FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> ------------------------------------------------------- QAS Ltd. Developers of QuickAddress Software <a href="http://www.qas.com">www.qas.com</a> Registered in England: No 2582055 Registered in Australia: No 082 851 474 ------------------------------------------------------- </FONT> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
