Summary

In this chapter, we have explored the fundamental elements of the Logging Application Block such as Log Category, Special Category, Logging Trace Listeners, Log Formatters, Logging Filters, Logger, LogWriter, LogEntry, and so on. We have learned about the various required and optional assemblies and learned to set up the initial configuration. We have also learned to create LogWriter instances and write log entries using several overloaded Write methods. We have further explored how to configure trace listeners such as Event Log, Flat File, Rolling Flat File, XML Trace Listener, Database, Email, Msmq, WMI, and so on; we have also explored the configuration options of Trace Source Categories and Logging Filters such as Category Filter, Priority Filter and Logging Enabled Filter. Finally, we implemented a custom trace listener, log formatter, and log filter.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.142.199.184