Enterprise Library Logging Application Block - change timestamp from UTC to Local Time

I implemented the Enterprise Library Application Blocks (3.1) for Logging and Exception Handling. Info messages go to a text file and exceptions go to the Event Log.  The Event Log entries are in local time and the Text file entries are in UTC.  Can I change the formatting on the Text file to display Local Time without rebuilding the source code for the app blocks. I'm using the signed assemblies that came with the library.
keningramAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

keningramAuthor Commented:
I can see where the documentation says "It now includes an enhanced version of the TimeStampToken class. Earlier releases of the Logging Application Block only allowed timestamps to be logged in Coordinated Universal Time (UTC). In this release, the timestamp token now supports a local: prefix that indicates that the timestamp should be displayed in local time. For more information, see Trace Listener Properties. "  but I can't find where to put the "local:" prefix.  I tried {local:timestamp}, local:{timestamp} and few other attempts.  I also don't see the information in the Trace Listener Properties docs.
0
keningramAuthor Commented:
Finally found it (through a post on codeplex). You change the token from {timestamp} to {timestamp(local:T)}.  I sure could not find that in any Microsoft documentation.  Hope this helps someone.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
LunchyCommented:
I've added this question to the database of solutions.  Thanks for posting.  As a note, clicking the delete question link when there are no expert comments actually deletes the question.  8*)

Lunchy
Friendly Neighbourhood Community Support Moderator
0
keningramAuthor Commented:
Thanks Lunchy. I was not sure what to do with the question after I answered it myself.
0
LunchyCommented:
>Thanks Lunchy. I was not sure what to do with the question after I answered it myself.

Next time, you can post a request for assistance to:
http://www.experts-exchange.com/Community_Support/General/
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.