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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:34:32+00:00 2026-05-22T02:34:32+00:00

We are developing a database tool and we’d like to write a log file

  • 0

We are developing a database tool and we’d like to write a log file in a format which is extendable and easy to be imported into a database table. We all feel that filtering this info by using SQL is a good idea, since the log will be a long file and “search” may not be good enough. Could you give me some suggestions? Any experiences will be useful too! Thanks in advance.

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

    The first thing I would say is that your file format ought to be human readable. My reasons are given here: Why should I use a human readable file format.

    Beyond that, it is impossible to answer with such a vague question. However, here are some of the issues you should consider:

    1. How big does this log file grow? How does this compare to the space you have? If space is going to be an issue, then a more parsimonious format is better – eg Protocol Buffers.
    2. How is the log file going to be looked at? If it is using specific tools, the format matters less than if you are going to be using a text editor or excel
    3. What sort of data are you storing? If it is just ASCII text then CSV works well.
    4. Is type information important in your data? Do you need to compare numbers and dates as numbers and dates rather than just strings? If so then some sort of typed system (eg XML or JSON) might be better
    5. Is the data going to be transferred to other people? In which case something with good language tools for reading and writing might be important
    6. How quickly does the data need to written? If speed is an issue (which it might be for realtime log files) then a format optimised for this might be important.
    7. How quickly does the data need to be read?
    8. Will all the data need to be in memory, or can it be scanned in a serialized way?

    When you can answer all these questions, you’ll probably know the answer yourself. If not, make your question more specific with these questions answered and it will be easier for someone to help you.

    Personally I’ve always been grateful when log data has been written as CSV. It is flexible enough to expand (add extra columns, change the length of a field), is quick to read and write in to a database spreadsheet, and hundreds of other tools, and is codeable in seconds. However, it does have a number of disadvantages – it is verbose, easy to get escapes wrong, untyped, and easy to break if you rearrange columns.

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

Sidebar

Related Questions

I'm developing a tool which shows data from a database in a hierarchical manner.
I am developing an application which will be connected to Access database at the
I am developing a small business application which uses Sqlserver 2005 database. Platform: .Net
My team is developing a large java application which extensively queries a MySQL database
I'm developing on Android and currently haev various methods which manage my database in
I really like this approach for handling sqlite database when developing for Android but
I am developing a system which selects questions from a database to generate a
I developing an application, in which i working with database manipulation. The method i
I have heard that when developing application which uses a database you should do
I'm developing an asynchronous database searching tool. It currently works with firefox and chrome,

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.