I made application for looking logs from enterprise library - logging application block in real time.
Application is still in alpha phase but I believe that it can be useful to someone even unfinished as it is. So, expect upgrade of this application, soon.
Link is http://www.mijalko.com/realtimelogviewer
8 comments:
Hi Mijalko,
can you please explain detail how to read log from enterprise lib at real time?
Hi Mitesh
at http://www.mijalko.com/realtimelogviewer
you can find explanation and sample application. And this library is not for reading log file in real time. The purpose is to send log events from enterprise library in real time to my log application.
Hi Mijalko,
Thanking you for your prompt reply.
As per my understanding from your article I am going to apply following logic flow.
Microsoft Enterprise Library Logging Block (creates logs)=> Custom Trace Event Listener (captures logs and passes to WCF Service)=> WCF Service (receives logs and passes to Log Viewer) => Log Viewer (receives logs).
I have created Custom Trace Listener class that implements following methods
1. public override void Write(string message){}
2. public override void WriteLine(string message){}
3. public override void TraceData(TraceEventCache eventCache, string source,
TraceEventType eventType, int id, object data)
But now my problem is that how to send log events to WCF service and how to read log using this service from Log Viewer?
Can you please explain the detail code if possible?
Thanks in advance
Mitesh Patel
Hi Mitesh,
you don't need to implement your own custom trace listener. I have implemented one (RtTraceListener.TraceListener). You should use this one. And this trance listener will send data to application (from zip) that will show you events in real time
So flow will be:
Microsoft Enterprise Library Logging Block (creates logs)=> RtTraceListener (captures logs and passes to Log Viewer)=> Log Viewer (receives logs and show logs in real time).
If you still have a problem you can contact me at mijalko - at - gmail com
Can you provide me one sample application with source code so i can understand it in a better way.
Please, reply as soon as possible.
Thanks in advance.
OK. Tomorrow, I will update sample applications with source code.
thanks a lot, buddy
thanks a lot, buddy
Post a Comment