473,326 Members | 2,680 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

How can I write real-time log message to a RichTextBox using log4net?

My gut feeling tells me I may have to implement a custom appender to do this. But I'm concerned about the threading issue, since I want the text box to display some message in a real-time manner as the system executes a series of actions.

For example, when user clicks some button on my Winform application, the click event handler calls 2 methods: Act1() and Act2(). So I want when Act1() finishes, the text box on the form displays some message from the logger. And same logic goes to Act2, and many other methods.

Any clue on how to implement such a custom appender?

Thanks,
Nico
Jun 2 '11 #1
0 1303

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Ritu | last post by:
Hi All, Can any body please tell me how i can write a device driver using CSharp. Thanks, Ritu
1
by: Alex Smith | last post by:
Hi friends, I want to open a .pdf file in in richTextBox using C#.Net,(Window Application). I have use this type of code,but I got "Catastrophic failure". I am trying this type of code. ...
1
by: Nikolay Petrov | last post by:
I cannot write to windows registry using ASP .NET account. I have made a key in HKEY_LOCAL_MACHINE\Software and granted full access to ASP .NET account, but still got "Requested registry access is...
3
by: UJ | last post by:
Has anybody done anything with using log4net where you have multiple programs on a single machine writing to the same log file? TIA - J.
4
by: rajendrasinghrajput | last post by:
I want to read/write on USB port using C# with out using any third party software means directly using .NET 2005. Is that any way to do so?? Any input will be appreciated!! Thanks in Advance ...
1
by: Eihab | last post by:
how to write a message based producer consumer program for linux with four processes . the reader process will read an input file , one line at a time . reader will take the each line of the input...
1
by: Mayilsamy | last post by:
hai, hai i need some information about how to load the pdf file in richtextbox using vb.net.
0
by: Swan | last post by:
Can anyone plz tell me,Can I write file on server using binary access,or it is only to write on local?(Actually I am creating OCX for Http File Upload Control in VB using API's.So for that I need to...
0
by: Andrew Taylor | last post by:
We have a large application that uses the Enterprise Application Blocks (including the Logging block) and need to integrate a library into it that uses log4net. I presume that we could configure...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.