I have a WPF application and I want to use the Microsoft Application Block for logging (MIcrosoft.Practices.EnterpriseLibrary.Logging)
How can I configure it in order to work?
I have a WPF application and I want to use the Microsoft Application Block for logging (MIcrosoft.Practices.EnterpriseLibrary.Logging)
How can I configure it in order to work?
It depends where and how you want to persist the log data.
Download the enterprise lib 4.1 from http://msdn.microsoft.com/en-us/library/dd203099.aspx
There is quick start for logging. The app.config within the sample is what you are after. You shouldn't have to make much change from it in order to make your WPF logging works.
FYI there's nothing special about using EntLib with a WPF application versus a WinForms or server application (assuming you're not launching forms for visual tracing).