logged messages showing question mark (?) in place of line number

531 views
Skip to first unread message

sandeep wasudeo bhiwgade

unread,
Jul 10, 2009, 5:22:14 AM7/10/09
to jugnagpur
Hi all,
I am facing a problem with my logger messages. It shows question mark
(?) in place of line number.

some thing like

DEBUG - Utils.printgetRequestParameters(?) | *********Get with
********
DEBUG - Utils.printgetRequestParameters(?) | Ison - false
DEBUG - Utils.printgetRequestParameters(?) | Char - OCD
DEBUG - Utils.printgetRequestParameters(?) | Date - Sat Aug 01
......

My logger configurations are

# logging for com package
#log4j.logger.com = DEBUG, MY_CONSOLE, MY_FILE
#log4j.additivity.com = true


# console appender
log4j.appender.MY_CONSOLE =org.apache.log4j.ConsoleAppender
log4j.appender.MY_CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.MY_CONSOLE.layout.ConversionPattern=%p - %C{1}.%M(%L) |
%m%n

# file appender
log4j.appender.MY_FILE=org.apache.log4j.RollingFileAppender
log4j.appender.MY_FILE.File=D:/Data/Logs/priceNAvailWS/
priceNAvailWS.log
log4j.appender.MY_FILE.MaxFileSize=1024KB
log4j.appender.MY_FILE.MaxBackupIndex=1
log4j.appender.MY_FILE.layout=org.apache.log4j.PatternLayout
log4j.appender.MY_FILE.layout.ConversionPattern=%d{dd MMM yyyy HH:MM }
%p - %C{1}.%M(%L) | %m%n


I am putting .jar file of my all classes in my projects lib folder.

Thanks in advance.

Tushar Joshi

unread,
Jul 10, 2009, 11:02:30 PM7/10/09
to jugn...@googlegroups.com
Hi,

This seems a problem with the JAR file.  The classes need to be compiled with -g options [1] and that is the default, but if the JAR is not compiled like that there may be a problem.

[1] http://www.jguru.com/faq/view.jsp?EID=1122360
[2] http://www.coderanch.com/t/420957/Other-Open-Source-Projects/log-j-not-printing-filename

with regards
Tushar

==============================================
Tushar Joshi, Nagpur
MCSD_NET C#, SCJP, RHCE
Software Engineer and Senior Project Manager @ Infospectrum India Private Limited, VOC Captain for NetBeans, JUGNagpur Leader
http://www.info-spectrum.com
http://www.tusharvjoshi.com
http://wiki.netbeans.org/VoiceOfCommunity
http://www.jugnagpur.com
Reply all
Reply to author
Forward
0 new messages