Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8999211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:08:59+00:00 2026-06-16T00:08:59+00:00

Using the logging block in Enterprise Library, I am seeing multiple log messages being

  • 0

Using the logging block in Enterprise Library, I am seeing multiple log messages being emitted with the same time stamp, despite knowing that the calls to LogWriter.Write() are separated by several milliesconds (as measured System.Diagnostics.Stopwatch).

Any suggestions on what could be causing this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T00:09:00+00:00Added an answer on June 16, 2026 at 12:09 am

    If you need to have precision in the log
    Using the System.Diagnostics.Stopwatch to get a precise time..
    see Example here http://msdn.microsoft.com/en-us/library/system.diagnostics.stopwatch.gettimestamp.aspx
    The resolution is based on your hardware. Can be as good as nanosecs.

    contruct the logentry by hand,

    //Microsoft.Practices.EnterpriseLibrary.Logging
    var logEntry = new LogEntry() ;
    /// code re stop watch add here...
    FancyTime = StartTime + Elapsedticks // see StopWatch.getTimeStamp
    logEntry.TimeStamp = FancyTimeFromStopWatchClass;
    
    LogWriterImpl.Write(logEntry);
    

    In Other words, Build the logentry and call Write, rather than calling overloaded write with params.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the Logging Application Block (of Microsoft Enterprise Library 5.0) to log
I'm using the Enterprise Library Logging application block to allow my application to log
I'm using Enterprise Library 4.1 and I've configured the Logging Application Block to log
I am using the patterns & practices enterprise library (p&p EntLib) logging block to
I created a WCF service for logging using the enterprise library logging block. The
I am using enterprise library logging block 5.0. My solution has over 20 projects,
Can the Enterprise Library 5.0 Logging Application Block be configured to roll the log
I'm using Enterprise Library 5 logging block in a scenario where there is a
Using Enterprise Library 5.0 Logging Block in .NET 4.0 which is the only Block
I'm using Enterprise Library 3.1 and want to programmatically access the Logging Block (runtime,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.