Solved

How to use the MS Enterprise Library Logging module?

Posted on 2015-01-08
7
141 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

733 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