C#C
C#2y ago
Denis

✅ Setting up centralized logging for desktop apps

I wish to setup centralized logging using OpenTelemetry.
I'm lost on exporting structured logs from a desktop application.

I have a .NET Server managing database access that exposes gRPC endpoints for clients.
I have .NET desktop Clients (specifically WPF, but this should be irrelevant) that connect to the server via gRPC.
The server and clients shall be installed on-premises; serving these as a cloud SaaS is a future prospect.

I've managed to setup opentelemetry logging for my WPF client; however, I'm clueless as to where and how I should export the collected data.

From my understanding, logs from both the server and clients should be exported to a third service specifically for handling logs. Is this a good approach?

My initial idea was to send logs from clients to the server and then have the server handle the dirty work.
It stemmed from the fact that most guides on setting up OT are for ASP.NET Core applications, that just add an endpoint for sending the collected logs and traces.

To what "system" or service should I export my logs to?
I wish to keep it small and simple, handling around 20 clients and a server and storing logs and metrics for 30 days.
Was this page helpful?