Skip to Content
Serverless computing in Azure with .NET
book

Serverless computing in Azure with .NET

by Sasha Rosenbaum
August 2017
Intermediate to advanced
468 pages
12h 5m
English
Packt Publishing
Content preview from Serverless computing in Azure with .NET

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Azure Serverless Computing

Mastering Azure Serverless Computing

Lorenzo Barbieri, Massimo Bonanni
Implementing Azure: Putting Modern DevOps to Use

Implementing Azure: Putting Modern DevOps to Use

Florian Klaffenbach, Oliver Michalski, Markus Klein, Mohamed Wali

Publisher Resources

ISBN: 9781787288393Supplemental Content