2

Closed

Silverlight: Timestamps not being logged properly

description

I’ve set up the logging my logging to output timestamps. When I do so. The server side logging works as expected but the client side logs appear as “1-01-01 00:00:00,000” as shown below.
 
[2009-04-10 14:30:54,787] INFO Global [(null)] - Application starting.
[1-01-01 00:00:00,000] DEBUG FiveTalent.Defero.Framework.ViewModels.PageViewModel`3,/fivetalent.defero.service/fivetalent.church.aspx [(null)] - PageViewModel - Processing page definition: Key: 2, Name: SummaryPage, QueryExpandPath: Address, Email, Phone, Family/Address
Closed Dec 2, 2009 at 3:57 PM by DanielVaughan
This has been fixed. The latest source code for Clog can be found at http://calcium.codeplex.com/SourceControl/ListDownloadableCommits.aspx

comments

jefffe wrote Jun 4, 2009 at 3:12 PM

Daniel simply forgot to initialize the OccuredAt property when instanciating a new LogEntryData from an ILogEntry.
To fix it :
In DanielVaughan.Logging.LogEntries.LogEntryData, line 103 add the following line in the constructor :
OccuredAt = logEntryData.OccuredAt;

DanielVaughan wrote Jun 4, 2009 at 9:00 PM

Thanks Jeffe! Saved me some time.

Cheers,
Daniel

wrote Dec 2, 2009 at 3:57 PM

wrote Feb 14, 2013 at 1:06 AM

wrote May 16, 2013 at 6:02 AM