May 23, 2023, 7:10 p.m. | Fabrizio Bagalà

DEV Community dev.to

Logging is an essential component for software development and maintenance. It helps us understand what is happening inside our applications, identify errors and unexpected behaviors, troubleshoot problems, and is also useful for auditing operations.





🗂️ Create logs


In ASP.NET Core, logging is typically performed by obtaining an ILogger or ILogger<T> instance through dependency injection, and then using that instance to log messages.


Here is a step-by-step guide on how to set up and use logging:


1️⃣ Configure logging in appsettings.json …

applications asp asp.net core auditing coding csharp dependency development dotnet errors identify injection instance logging logging in logs .net operations problems programming software software development understand what is

CyberSOC Technical Lead

@ Integrity360 | Sandyford, Dublin, Ireland

Cyber Security Strategy Consultant

@ Capco | New York City

Cyber Security Senior Consultant

@ Capco | Chicago, IL

Senior Security Researcher - Linux MacOS EDR (Cortex)

@ Palo Alto Networks | Tel Aviv-Yafo, Israel

Sr. Manager, NetSec GTM Programs

@ Palo Alto Networks | Santa Clara, CA, United States

SOC Analyst I

@ Fortress Security Risk Management | Cleveland, OH, United States