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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:58:37+00:00 2026-05-11T13:58:37+00:00

Recently I’ve faced such problem. I’m working on the application, in which logging is

  • 0

Recently I’ve faced such problem. I’m working on the application, in which logging is very important.

By logs in that application I mean the messages, like

  • User A(id=x) has created invoice(invoice # is XXX) (1)
  • User B(id=y) has purchased the book (2)
  • User A(id=x) has approved invoice XXX (3)

(1) and (3) are messages of one particular request/command – so when I want to see the logs, I need to get all the information about this request log thread.

Because of the application is highly loaded and uses AJAX a lot, log message of different users/operations/requests can be mixed.

Temporary, I’ve fixed this problem like this:

I’ve created at the beginning of the request some unique UUID code, and prepend any log messages with this unique code. So, I can find all the messages of particular thread by simple grep UNIX command.

That solves the problem, but I’m not sure it is the best solution for the task. Looks more like reinventing the wheel. What solutions would you reccomend for this problem?

  • 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. 2026-05-11T13:58:38+00:00Added an answer on May 11, 2026 at 1:58 pm

    Off the top of my head, a couple of suggestions (if you haven’t already implemented them)

    1. Log each different type of event into a separate log file, e.g. BookPurchases.log, InvoiceApprovals.log. That said keep a raw output log of everything in case it’s the sequence of events that matters as opposed to the classification.

    2. Use a logging package if you don’t already have one, examples are The Log Package, or Zend_Log where you can have different logging priorities.

    I don’t know if that’s of any use to you, as what you have said seems pretty solid.

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

Sidebar

Related Questions

Recently, I was writing a class in which I discovered that I could reduce
Recently I coded up a function that wasn't working properly. I managed to find
Recently I was asked to develop an app, which basically is going to use
recently, while working on a db2 -> oracle migration project, we came across this
Recently launched a Magento store which features an image slider on the homepage. Works
Recently I'm doing some work on RTMP streaming, that is using Flowplayer to integrate
Recently I've noticed that on occasion I do not get a mayorship notification when
Recently I discovered a problem on the midas and I fixed it, the problem
Recently I've been doing quite the project mostly working with the DateTime class. Now,..
Recently I am working on selenium webdriver 2.0 (developing automation framework). As per requirement

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.