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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:20:40+00:00 2026-05-26T20:20:40+00:00

My task is to create a class which will gather user activity around several

  • 0

My task is to create a class which will gather user activity around several applications.

Let’s say I have a class TLogging and a global object called Logging.

User activity (screen open, etc…) should be collected in memory (maybe put into a (string)list of TLogging) and saved into log file after some time interval (each 10 minutes), or when application is closed.

The most important is that logging must be in “silent mode”, it mustn’t affect user workflow in any way: no screen hanging, no exceptions.

Please give me the direction for this task.

  • 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-26T20:20:41+00:00Added an answer on May 26, 2026 at 8:20 pm

    This is a very broad question that touches several areas. A few hints:

    • At least consider an established logging framework for this. Newer Delphi versions come with CodeSite. SmartInspect is another alternative.

    • Use synchronization primitives to make your class thread-safe: TCriticalSection, TMREWSync

    • Make sure you understand the issues involved in multithreading and synchronization before attempting to write a thread-safe logging framework. A good start is Martin Harvey’s guide Multithreading – The Delphi Way.

    • Use a background thread that flushes the log content to disk in regular intervals or if enough data has been buffered.

    • Ask more specific questions here on SO if you encounter specific problems.

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

Sidebar

Related Questions

is there a way to create a task/activity report (say a weekly report) off
In one app, I have a task to create files that will be used
I have a a service class which includes an Async task. In the doInBackground
I've found a task on some Java programming competition. One must create class Sentence
Please explain what this task is about? Create a generic linked list class that
I'd like to do something like this: class Task(models.Model): ... created_by = models.ForeignKey( User,
I have a service component (common task for all my apps), which can be
I have an android app, which is basically an exam simulator, it will come
So the problem is I have a ThreadManager class which use queue to hold
I have only started learning Java. My task is to create a file server

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.