https://issues.apache.org/bugzilla/show_bug.cgi?id=51347
Bug #: 51347
Summary: Filename and line number not display , Java version
difference
Product: Log4j
Version: unspecified
Platform: Other
OS/Version: Windows XP
Status: NEW
Severity: critical
Priority: P2
Component: Appender
AssignedTo: log4j-dev@logging.apache.org
ReportedBy: indrojeet.m@hcl.com
Classification: Unclassified
Log not getting printed properly when application run on a machine with
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)
but the log is corrected generated when application is running on
java version "1.6.0_19"
Java(TM) SE Runtime Environment (build 1.6.0_19-b04)
Java HotSpot(TM) Client VM (build 16.2-b04, mixed mode, sharing)
or
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) Client VM (build 16.2-b04, mixed mode, sharing)
---------
log4j.rootLogger=DEBUG, rolling
log4j.category.com.dataupload = INFO, rolling
log4j.category.org.xml.sax = INFO, rolling
log4j.category.org.hibernate = ERROR, rolling
log4j.appender.rolling=org.apache.log4j.RollingFileAppender
log4j.appender.rolling.file=D:/Log/Indro/logs/dua.log
log4j.appender.rolling.MaxFileSize=1000KB
log4j.appender.rolling.MaxBackupIndex=1
log4j.appender.rolling.layout=org.apache.log4j.PatternLayout
log4j.appender.rolling.layout.ConversionPattern=%d %-5p %5L:%27F %1x : %m%n
The above is my log4j.properties file.
Sample of the correct log file
2011-02-08 16:31:56,813 INFO 33: FileHandler.java : | | >readFiles
2011-02-08 16:31:56,828 INFO 61: FileHandler.java : | | <readFiles
2011-02-08 16:31:59,125 INFO 35: MainClass.java : | | >runParser
Sample of incorrect log file
2011-06-09 12:06:14,103 INFO ?: ? : ||||> isFileNameInDB
2011-06-09 12:06:16,837 INFO ?: ? : ||||> isFileNameInDB
2011-06-09 12:06:16,837 INFO ?: ? : ||||>deleteXMLFile
Basically the line number and Filename is getting replaced by ? symbol
I am using : log4j-1.2.15.jar
Please let me know a fix to this issue, do let me know if any other information
is also needed.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
|