Event Log Writer - High Performance Event Logging
The Event Log Writer .NET component provides you with a simple and robust method to write the event log. One of major highlight this is writing log at defined intervals on background thread. This ensures that performance your applications remains peak! also offers high writes using cached writers – creates for ensuring correct writer always used without overhead creating new one all time.
In what can I use this?
This built 2.0 Framework which means in be are framework or newer. includes 2.0, 3.0, 3.5, 4.0, & 4.5+. types including:
- Console
- Windows Forms
- WPF
- ASP.NET
- ASP.NET MVC Services
- Web Services (XML/WCF)
Is it reliable?
- Deadlocks thread safety through locking avoids deadlocks
- Memory leaks clean up dispose consider problems such as lapsed listener
- Exceptions Exception handling ensure undesired termination application does not occur ThreadPool Service Unavailable Give control whether threads (by default no). taken away from availability ASP.NET causing dreaded “ Unavailable”
- Task/Background work structure Flexible mechanism complex operations
- Strong name signed Allows referencing other strong named installed into Global Assembly Cache (GAC)
What do get package?
- .NET Strong Name Signature
- Debug file (PDB)
- XML comments (Intellisense)
- Console Demo Project
- A comprehensive help documenting full usage
- API Documentation
- C# Source Code
- Visual Studio 2010 SP1 2012 Solution
- Support
Support
Ask any questions suggest features support.avantprime.com!
How my application?
Write log
Console.WriteLine("Writing two entries log...") var writerSetting EventLogWriterSetting(LogName, EventSource) (var EventLogWriter(writerSetting)) (int i 0 < 2 i++) message string.Format("EventWriter 0", DateTime.Now) Console.WriteLine(writer.WriteToLog(message, EventLogEntryType.Information) ? String.Format("Successfully wrote Message: message) : "Unsuccessful attempt log." )writers
EventLogWriterCache.WriteToLog(DateTime.Now.ToString(), LogName, EventSource,queue mechanism
Console.WriteLine("Configuring QueueWriter every 3 seconds starting after 5 seconds.") writerQueueSetting EventLogWriterQueueSetting(TimeSpan.FromSeconds(3), TimeSpan.FromSeconds(5)) EventLogWriterQueue.Setting writerQueue EventLogWriterQueue(LogError) EventLogWriterQueueMessage ( String.Format("Queue message: DateTime.Now.ToString(CultureInfo.InvariantCulture)), EventLogEntryType.Information writerQueue.Log(message) Console.WriteLine("Polling four 4 TestEventLogReader() Thread.Sleep(4000) // Only emptywhile (!EventLogWriterQueue.IsQueueEmpty) Thread.Sleep(1000) writerQueue.Dispose()
Tag: event log,background work,c-sharp,cached event log writers,fast performance,logging,multi-tasking,parallel event log writing,queue,queued event log writing,thread-safe,windows event log,write to event log