Skip to main content

Microsoft Enterprise Library: Part-III



Continuing the exploration of the Enterprise library application blocks, this post will cover the Logging Application Block

Logging Application Block

Logging Application Block can be used to write information to a variety of locations:

1. The event log

2. An e-mail message

3. A database

4. A message queue

5. A text file

6. A Windows Management Instrumentation (WMI) event

7. Custom locations using application block extension points



This link provides the design details of logging application block.

To know about what the logging application block does, refer this link

When to use Logging Block: refer to this link
Would it not be nice if there are pre-defined steps showing how to use this block in all the above 7 mentioned scenarios. If you answered YES, here are the steps.



Feel free to play around with the above mentioned scenarios, before I come up with sample app for these.

Till Next we connect

Happy Learning.



Comments

Popular posts from this blog

Authentication using Social Networking portals(Facebook, Gmail, and Yahoo)

There are tons of sites, which offer sign on using the social networking site credentials (Facebook, gtalk, twitter and the list continues).It can be termed a “SINGLE SIGNON” and offers a lot of benefits compared to traditional database authentication approach. However, not storing user credentials in the DB imposes an additional risk. How to track who all logged into the system. Now the question is, which approach to follow. The best approach is to use inbuilt asp.net users for storing the logging info about user activities and using single signon technique for authentication. This article will explore the approach and provide the details of implementation using some third party libraries and customizing it to the requirements. The Authentication will be done using the following networking portals Yahoo  Gmail Facebook    Special thanks to my friend Sumit Khandelwal, for implementation of Facebook part (in fact he did it all!!) Except Facebook, all other ca...

Interview Queations-A Quick Recap

Today one of my friends, got his first blog entry published. I find it cool enough to get started and it can come up as an excellent reource for quick review of concepts prior to interview. Here is the link. Quick Review Hope this is helpful! Till next we Connect........ Happy Learning.

C# Partial Feature:Classes and Methods

C# Partial Classes and Methods: One of the unique features of C# is the concept of Partial, extendable to definition of a Class or a Struct, an Interface or a method. Using this, the definition of any class, struct, interface of method can exist in two or more source files. Each source file contains a section of the type or method definition, and all parts are combined when the application is compiled. To split a class definition, partial keyword modifier is used. For Example: public partial class Pradeep { public void OnLeave () { } } public partial class Pradeep { public void InMeeting () { } } Here, it is valid to use the same name for the class and implement desired functionality separately. Finally, when compiled, the code is auto merged , giving a Final class named Pradeep, with the two methods that were defined separately. The partial keyword indicates that other parts of the class, struct, or interface can be defined in the namespace. Following are...