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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T07:43:26+00:00 2026-05-21T07:43:26+00:00

I want to add tracing capabilities to my messaging application. Each message I use

  • 0

I want to add tracing capabilities to my messaging application. Each message I use has an unique identifier which is carried on to subsequent messages (messages spawned by the original message).

To be able to monitor the lifetime behavior of a message across multiple processes and potentially servers I want to use the log4net remoting appender.

I could use one logger and encode the message ID in the message itself:

  • Logger: "MessageLivetime" Message: "SomeId | message text")

However I thought it would be smart if I created a logger per message:

  • Logger: "MessageLivetime.SomeId" Message: "message text")

However since the LogManager class hast no method to remove a logger I worry about running into problems because thousands of abandoned loggers will be created.

Can someone with more insight to log4net give me a hint if this approach is viable?

I already found context properties. Are they be a better option? And how do I write to the event context?

  • 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-21T07:43:27+00:00Added an answer on May 21, 2026 at 7:43 am

    I don’t see any benefit in including the ID within the logger itself. It feels the wrong way round to me.

    This tutorial on logging contexts may help you. Assuming everything for a single message occurs in a single thread, you can set a context property for the message ID, use an appropriate logging format, and the message ID will just appear in the logs for you.

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

Sidebar

Related Questions

I want to add logging or tracing to my C# application but I don't
We want to add tracking statistics to a web application we are building but
i want to add such feature in my Application that App will recognize letters,
I'd like to use the System.Diagnostics.Trace class to perform simple tracing of my application
I have a task tracking application, which is very basic. It currently has a
i want to add tracking to my website. I saw google analytics which seems
I want to add tracking to our Flash-based media player so that we can
I want to update Paypal Order status and add tracking number using API. but
I want add UIGestureRecognizerDelegate to UIWebView,but failed. if [self.view addsubView:webView]; So UIWebView is ok,but
I want add new Feed item on entity persist and update. I write this

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.