logging-log4php-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco V." <ma...@apache.org>
Subject Re: Serializing LoggerLoggingEvent: Missing timestamp
Date Wed, 30 Nov 2005 09:37:33 GMT
Patched.

Thank You.

-Marco

----- Original Message ----- 
From: "Knut Urdalen" <knut.urdalen@telio.no>
To: <log4php-dev@logging.apache.org>
Sent: Wednesday, November 30, 2005 12:20 AM
Subject: Serializing LoggerLoggingEvent: Missing timestamp


> Since I can't find any bug report database for log4php I'll post this to
> the developer list.
> 
> LoggerAppenderSocket with useXml = false will serialize a
> LoggerLoggingEvent over the network socket. Unserializing the logging
> event on the other side I found that timestamp was missing. Checking the
> code I see that there's an minor typo in LoggerLoggingEvent::__sleep()
> function which will fix this.
> 
> Here's my minimal patch which solved the problem:
> 
> Index: src/log4php/spi/LoggerLoggingEvent.php
> ===================================================================
> --- src/log4php/spi/LoggerLoggingEvent.php      (revision 349828)
> +++ src/log4php/spi/LoggerLoggingEvent.php      (working copy)
> @@ -365,7 +365,7 @@
>              'ndc','ndcLookupRequired',
>              'message','renderedMessage',
>              'threadName',
> -            'timestamp',
> +            'timeStamp',
>              'locationInfo'
>          );
>      }
> 
> 

Mime
View raw message