Skip to Main Content
ASP.NET Core in Action, Second Edition
book

ASP.NET Core in Action, Second Edition

by Andrew Lock
May 2021
Intermediate to advanced content levelIntermediate to advanced
832 pages
25h 39m
English
Manning Publications
Content preview from ASP.NET Core in Action, Second Edition

17 Monitoring and troubleshooting errors with logging

This chapter covers

  • Understanding the components of a log message
  • Writing logs to multiple output locations
  • Controlling log verbosity in different environments using filtering
  • Using structured logging to make logs searchable

Logging is one of those topics that seems unnecessary, right up until you desperately need it! There’s nothing more frustrating than finding an issue that you can only reproduce in production, and then discovering there are no logs to help you debug it.

Logging is the process of recording events or activities in an app, and it often involves writing a record to a console, a file, the Windows Event Log, or some other system. You can record anything in a log message, ...

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

ASP.NET Core in Action, Third Edition

ASP.NET Core in Action, Third Edition

Andrew Lock

Publisher Resources

ISBN: 9781617298301Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentErrata PagePurchase Link