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 6053139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:00:23+00:00 2026-05-23T08:00:23+00:00

I have a wpf app writing to a text logfile fairly infrequently (from 0.25s

  • 0

I have a wpf app writing to a text logfile fairly infrequently (from 0.25s to 4s between writes).
Each write is one short line of text.
I don’t flush after every write.

At the moment, this is called directly on the main UI thread, as I figure the length of time taken isn’t even beginning to become close to being a concern.

..Is the right way to do it, though?
Should I have the logging process on it’s own thread, and send some asynchronous event to it to log the data?

  • 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-05-23T08:00:24+00:00Added an answer on May 23, 2026 at 8:00 am

    Have a look at NLog, Spring or any of the multitude of logging platforms. Make your app cool and worry about the best way to do logging later. Logging calls will be made from your gui methods, how they are implemented should be abstracted onto a framework so you can put them on different threads etc. if required.

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

Sidebar

Related Questions

I'm writing a WPF calculator app. In this application I have TextBox that get
I have WPF app that processes a lot of urls (thousands), each it sends
I'm currently writing viewmodels for my (WPF/C#) app. I have to do a lot
I have a WPF app with <Image Source={Binding myUrl}> that displays images retrieved from
I have a WPF app that is currently driven completely from XAML. All fields,
In a WPF app that I'm writing using the MVVM pattern, I have a
I have some user admin functionality in a WPF app that I'm currently writing
I'm writing an app using WPF (should apply to Silverlight too) where I have
I am writing a home WPF app that is obtaining a file from a
I have WPF app with 2 windows - whats the best way to syncronise

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.