Solved

How to use the MS Enterprise Library Logging module?

Posted on 2015-01-08
7
129 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
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.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

705 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now