Solved

How to use the MS Enterprise Library Logging module?

Posted on 2015-01-08
7
134 Views
Last Modified: 2015-01-09
Hi, I'm using VS2012, C# and asp.net
I'm pretty log reading this article, http://msdn.microsoft.com/en-us/library/dn440721%28v=pandp.60%29.aspx 
I also downloaded the example code, http://entlib.codeplex.com/downloads/get/683533 
I'm just completely lost on how to create the configuration object.   Looking at the method BuildProgrammaticConfig()
in the example code doesn't help.  

Need help creating this configuration object so that I can just write exception error to Windows' Event log.  Thank you.
0
Comment
Question by:lapucca
  • 4
  • 3
7 Comments
 
LVL 9

Expert Comment

by:sudheeshthegreat
ID: 40539472
MSEL is a bunch of application blocks. For logging, jump over to
http://msdn.microsoft.com/en-us/library/dn440731(v=pandp.60).aspx#sec7
0
 
LVL 9

Expert Comment

by:sudheeshthegreat
ID: 40539474
MSEL also has a configuration editor that you can use if you like using a GUI instead of having to mess around with config entries. Its part of the download bundle.
https://www.microsoft.com/en-us/download/details.aspx?id=38789
0
 

Author Comment

by:lapucca
ID: 40540617
I already downloaded and installed the logging module.  I also just went to the link you provided and downloaded the entire library.  I run all the extract it asked me to.  I noticed there is an application file, Microsoft.Practices.EnterpriseLibrary.ConfigConsoleV6

when I run that it asked if I want to installed Extension to VS2012, should I ?  I'm not sure what it does.
Also, where do I find the GUI configuration?
Thank you.
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 9

Expert Comment

by:sudheeshthegreat
ID: 40540754
Yes, the Microsoft.Practices.EnterpriseLibrary.ConfigConsoleV6.vsix file in the download is the Visual Studio extension for the MSEL GUI editor. If you want to use it, you have to apply the extension to your Visual Studio. More info about it is at https://visualstudiogallery.msdn.microsoft.com/029292f0-6e66-424f-8381-3454c8222f9a
0
 

Author Comment

by:lapucca
ID: 40540796
Cool!  I executed it.  How do I bring it up, the console?  Sorry, but I clicked on the last link you provided but didn't find information on it.
0
 
LVL 9

Accepted Solution

by:
sudheeshthegreat earned 500 total points
ID: 40540798
Try the Tools menu in Visual Studio. You should see a new entry there for this.
0
 

Author Closing Comment

by:lapucca
ID: 40540910
Very cool, thank you.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question