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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:29:07+00:00 2026-05-13T07:29:07+00:00

I’m now building a program that is a eBook manager, reader, organizer and publisher,

  • 0

I’m now building a program that is a eBook manager, reader, organizer and publisher, that is also a eBook transfer(to eReaders like Kindle), but I was developing it and a question have poped-up on my mind: “Log or not?”

Then I started to think about logging. As many programs log actions, I started to seek for they and see how they log things, then I want to know:

  • It’s good to log actions or things that happend in programs(like errors)?
  • In my case, it’s good to log things?
    • What I need to log?
  • What is the best way to log things(text files, databases…)?
  • There is any tool to logging for Lazarus?
  • 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-13T07:29:07+00:00Added an answer on May 13, 2026 at 7:29 am

    It’s essential. Log

    1. all errors with related data (method args etc.). Otherwise you’re going to have a range of bug-related behaviours that you can’t analyse.
    2. key entry and exit points (what’s your program doing? Should it be calling these methods at this point?)
    3. possible time consuming methods/operations (entry and exit), so you can measure what’s going on and know what your program is doing/where it is.
    4. where you’re loading configurations from, if applicable. This means you can tell how your program is configuring itself (which config is it using?)

    If you get this right, you may find you spend less and less time in the debugger.

    I would err on logging more rather than little, and removing or filtering if/when this becomes a problem (as noted below, logging Gbs per day is probably counterproductive). I’ve worked on numerous systems where it’s been decreed that logging will be turned down or removed post development, and this never occurs, since it’s so useful. Some people object to logging on the basis that it affects performance. If this is the case, remove it when it’s known to be a problem, not before.

    You should be able to find suitable frameworks for logging (e.g. log4c for C, log4j for Java) for your particular platform that allow appropriate filtering and destination selection. That means you can log to files (and restrict log sizes), databases, remote monitors etc. and change this decision on the fly (via a configuration file or command-line arguments). The right framework should require very little initially other than your inserting appropriate logging statements. You shouldn’t have to write much in the way of file management or other log management code.

    Here’s a useful blog entry on this subject, with further guidelines.

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

Sidebar

Related Questions

No related questions found

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.