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

  • Home
  • SEARCH
  • 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 6859271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:15:44+00:00 2026-05-27T02:15:44+00:00

I am writing a simple utility to take application logs and display them to

  • 0

I am writing a simple utility to take application logs and display them to the user. It neeeds to take log entries from multiple files and merge them into a single internal storage. The merging is based on the log entry time and so it is possible for multiple entries to have the same time. Note that the size of the logs is fairly small and so the maximum size is likely to be 10 files containing 2,000 log entries each.

I also want to present this to the user but allow them to filter based on different logging levels (debug, warning, error etc…) and also filter based on the file it came from. This sounds like a very common type of problem to solve and so others must have experience about the best approach. I had thought of the following…

1, Use a DataSet to store the log entries and then use a DataView to apply filtering, sorting.

2, Use a couple of List<> instances, a master and then a copy that is filtered to the required entries and apply a custom IComparer function to the filtered list to get the correct ordering.

Thoughts?

  • 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-27T02:15:45+00:00Added an answer on May 27, 2026 at 2:15 am

    I assume that the data is small enough to fit in memory, and you’d rather not have the overhead of a database and an external file.

    Either of the two should work well. I’m more comfortable with List<T>, so would prefer that, but can understand the attraction of using DataTable, etc.

    Another option would be to use LINQ on whatever internal data storage you choose. That might simplify the queries.

    I suspect that a List<T> or whatever collection you choose will use less memory than a DataTable. However, unless your log entries are huge, I don’t expect that memory usage will be a problem.

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

Sidebar

Related Questions

I'm writing a simple ruby sandbox command-line utility to copy and unzip directories from
I'm writing a simple command line Java utility. I would like the user to
I'm writing simple text log Entries to an SQL-table like so: private SqlConnection sqlcon;
I'm writing a simple alarm utility in Python. #!/usr/bin/python import time import subprocess import
I am writing a simple DOS utility that uses the findstr utility to search
I'm writing simple GUI using wxPyhon and faced some problems. My application does simple
I writing a simple method which should delete an entity from the database if
Overview I'm in the process of porting a simple utility app over from C#
I'm writing a simple regular expression parser for the output of the sensors utility
I writing simple application that need to make some record of the incoming sound.

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.