Solved

How to use the MS Enterprise Library Logging module?

Posted on 2015-01-08
7
154 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
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
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…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

724 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