logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 38090] New: - Log4j1.3alpha logs duplcate messages
Date Mon, 02 Jan 2006 01:39:23 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38090>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38090

           Summary: Log4j1.3alpha logs duplcate messages
           Product: Log4j
           Version: 1.3alpha
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Appender
        AssignedTo: log4j-dev@logging.apache.org
        ReportedBy: jyoungs.choi@samsung.com


Hello,

I've used log4j 1.2.8.
but, now It has some bug related with file lock handling file, I'd like to 
change to 1.3alpha.

so, I tried to change, but I've found a bug, I think.
I can log lines without duplication with log4j1.2.8.
but, when I change the library file to log4j1.3alpha, it starts to log 
duplicate lines. log4j always log 2 lines like this!
2006-01-02 
10:36:27:765|INFO|HIS|RESOURCE|INI;;;initHandlers;|com.sec.dsc.shv.infrastructur
e.his.core.context.ContextManager
2006-01-02 
10:36:27:765|INFO|HIS|RESOURCE|INI;;;initHandlers;|com.sec.dsc.shv.infrastructur
e.his.core.context.ContextManager
2006-01-02 
10:36:27:765|INFO|HIS|RESOURCE|INI;;;initService;|com.sec.dsc.shv.infrastructure
.his.core.context.ContextManager
2006-01-02 
10:36:27:765|INFO|HIS|RESOURCE|INI;;;initService;|com.sec.dsc.shv.infrastructure
.his.core.context.ContextManager

and my configuration file- log.xml- is this.
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/'>
	<appender name="Console" class="org.apache.log4j.ConsoleAppender">
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern"
			       value="%d{yyyy-MM-dd HH:mm:ss:SSS}|%p|%X
{NODE}|%m|%c%n"/>
		</layout>
	</appender>
	<root>
		<level value="debug" />
		<appender-ref ref="Console" />
	</root>
</log4j:configuration>
 

here is one more thing
I changed the library file to log4j.1.2.13 and then ran my application.
it worked well leaving just one line for a message not duplicated.

Is there any mistake of mine? or can you guess other reasons or any other 
suggestions?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message