Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Serverless computing in Azure with .NET

You're reading from   Serverless computing in Azure with .NET Build, test, and automate deployment

Arrow left icon
Product type Paperback
Published in Aug 2017
Publisher Packt
ISBN-13 9781787288393
Length 468 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Sasha Rosenbaum Sasha Rosenbaum
Author Profile Icon Sasha Rosenbaum
Sasha Rosenbaum
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Preface 1. Understanding Serverless Architecture FREE CHAPTER 2. Getting Started with the Azure Environment 3. Setting Up the Development Environment 4. Configuring Endpoints, Triggers, Bindings, and Scheduling 5. Integrations and Dependencies 6. Integrating Azure Functions with Cognitive Services API 7. Debugging Your Azure Functions 8. Testing Your Azure Functions 9. Configuring Continuous Delivery 10. Securing Your Application 11. Monitoring Your Application 12. Designing for High Availability, Disaster Recovery, and Scale 13. Designing Cost-Effective Services 14. C# Script-Based Functions 15. Azure Compute On-Demand Options

Logging events


In any application, logs are a very useful debugging and monitoring tool, however, they become even more crucial in serverless compute. As we will see in this chapter, it is not always easy to debug the functions locally, and it isn't always easy to simulate parallel execution of functions when they are triggered at scale. Given the asynchronous, cloud-based, and highly parallelized nature of the serverless code, the log statements become one of our most powerful tools for identifying and correcting errors.

Azure Function templates come preconfigured with the TraceWriter log parameter, which is based on the Microsoft.Azure.WebJobs.Script.Intercepting.TraceWriter class, implemented in the WebJobs SDK.

The usage of the TraceWriter class is not limited solely to functions and WebJobs. You can start leveraging the TraceWriter class in other parts of your application (such as Web UI) by installing the WebJobs NuGet package. This would allow you to log events consistently across multiple...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime