Pro XAML with C# by James Buddy & Lalonde Lori

Pro XAML with C# by James Buddy & Lalonde Lori

Author:James, Buddy & Lalonde, Lori
Language: eng
Format: epub
ISBN: 978-1-4302-6776-8
Publisher: Apress
Published: 2015-06-30T04:00:00+00:00


Figure 7-16. App.config exception handling and logging configuration markup

As you scroll through the App.config file to view all of the markup that was added by the Enterprise Configuration Console, think about how tedious and error prone the process would have been if you had to write this XML from scratch!

Logging Options for Windows Device Apps

As we mentioned in the first section within this chapter, the Enterprise Library Application Blocks are available for a variety of .NET applications. Unfortunately, Windows Store and Windows Phone apps are not among them. So, you will need to devise an exception handling approach that works for your application, which means handling it the old-fashioned way. And by this we mean putting in those try/catch blocks that you’ve been desperately attempting to avoid at all costs.

The following are some options that you can use to handle logging within Windows Store and Windows Phone applications:

Custom logging library: Create your own portable class library to write messages to a log file, SQLite database, or Azure SQL database, or to your own web service endpoint.

MetroLog: This is an open source project available on GitHub, https://github.com/mbrit/MetroLog, which allows you easily to implement logging based on NLog.

Visual Studio Application Insights: This is a client library for an Azure service that allows you easily to incorporate tracing, logging, and analytics within your Windows Phone and Windows Store applications.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.