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 43599] New: - AsyncAppender fails on changing MessageObjects
Date Thu, 11 Oct 2007 13:02:43 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=43599>.
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=43599

           Summary: AsyncAppender fails on changing MessageObjects
           Product: Log4j
           Version: 1.2
          Platform: All
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Appender
        AssignedTo: log4j-dev@logging.apache.org
        ReportedBy: horst.scheruga@gmx.at


If I use an AsyncAppender to log a message object that is changed after the call
of the logging method, the logging will sometime show up the value changed
afterwards.


Example

  StringBuffer buffer = new StringBuffer("Hello world");

  Logger.getLogger("sample").debug(buffer);

  buffer.setLength(0);
  buffer.append("changed message");

If an AsyncAppender is used for logging this,
it may log on of the three values:
  "Hello world"
  ""
  "changed message"

-- 
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