Logging displaying the wrong time in the time stamp

Topics: Logging Application Block
Dec 6, 2010 at 2:38 PM

Hello,

I am using the Microsoft.Practices.EnterpriseLibrary.Logging and I am having trouble with the TimeStamp displaying the incorrect time.  This is the code I have:

 

 <loggingConfiguration name="Logging Application Block" tracingEnabled="true" defaultCategory="General" logWarningsWhenNoCategoriesMatch="true">
    <listeners>
    </listeners>
    <formatters>
      <add template="Timestamp: {timestamp}
Message: {message}
Category: {category}
Priority: {priority}
EventId: {eventid}
Severity: {severity}
Title:{title}
Machine: {machine}
Application Domain: {appDomain}
Process Id: {processId}
Process Name: {processName}
Win32 Thread Id: {win32ThreadId}
Thread Name: {threadName}
Extended Properties: {dictionary({key} - {value}
)}" type="Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.TextFormatter, Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="Text Formatter"/>
    </formatters>

 

 

However, the timestamp is displaying the time 5 hours ahead of what the time is.  How do I fix this?

 

Thanks,

Dec 6, 2010 at 10:16 PM

Duplicate of http://entlib.codeplex.com/Thread/View.aspx?ThreadId=237308

 

Sarah Urmeneta
Global Technologies and Solutions
Avanade, Inc.
entlib.support@avanade.com