.NET Logging WebService

I am working on some ASP.NET projects in collaboration with other developers, and I am thinking of creating a home logging solution. But before starting anything, I would like to know if there is something similar to what I intend to code.

I'm looking for a tool, framework, or something else that you can use to create a logging web service.

The service will be available to all our sites. It offers a set of methods for sending registration information to a service that will store them in a database. We can imagine a method called "Trace (String message, TraceLevel level)", where the first argument can be an XML string containing a set of structured useful information (error, debugging or access).

One interesting feature will be that people can subscribe to a set of magazines. For example, if I am working on the project “AnotherStackOverlow.com” and I want to receive error logs, I can easily subscribe to the system by choosing the appropriate TraceLevel.

Has anyone already used such a system?

I am also interested in general comments on security issues, coding issues, design issues, etc.

thanks

+4
source share
1 answer

In my opinion, doing logging through a web service is a very bad idea. You rely on a connection between machines that may or may not be there, resulting in data loss.

I would take a look at Elmah , which is a pretty simple ASP.NET logging tool.

You may have Elmah to register. Then you can write a separate application to aggregate all the log data (which is quite difficult if you configure Elmah to enter the database) so that it can be viewed from one place.

+5
source

All Articles