?
Solved

How to use the MS Enterprise Library Logging module?

Posted on 2015-01-08
7
Medium Priority
?
161 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
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…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

770 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