Skip to main content

22 posts tagged with "Logging"

Logging Practices and Tools for Applications

View All Tags

How to Send ASP.NET Core Logs, Traces and Metrics to the Aspire Dashboard with OpenTelemetry

· 13 min read
Jagdish Kumawat
Founder @ Dewiride

Four OpenTelemetry packages and one UseOtlpExporter() call send an ASP.NET Core app's logs, traces and metrics to the Aspire Dashboard. This guide adds them to a small .NET 10 app, sends it requests, and reads the result on the dashboard's Structured logs, Traces and Metrics pages.

How to Set Up Logging in Python with logging.basicConfig

· 4 min read
Jagdish Kumawat
Founder @ Dewiride

print is fine for quick checks, but a real program needs messages with a level, such as information, warnings and errors, so you can choose which ones to show. Python's logging module does that, and logging.basicConfig sets it up in one line. This guide turns logging on for a small script, with real output from Python 3.15.2.

How to Replace the CloudAdapter Error Handler in the Microsoft 365 Agents SDK in C#

· 8 min read
Jagdish Kumawat
Founder @ Dewiride

When a Microsoft 365 Agents SDK agent throws an exception it doesn't catch, the CloudAdapter handles it, and its default handler sends the exception's message to the user. A message like that can show a file path on your server to anyone chatting with your agent. One small class replaces that handler for every error.