Skip to content

Logging as a service. It's a very simple logging service that saves only logs and gives an ability to scan them.

License

Notifications You must be signed in to change notification settings

DiyazY/service-log

Repository files navigation

service-log workflow GitHub license

Logging as a service. It's a very simple logging service that saves only logs and gives an ability to scan them. The service is following DomainDrivenDesign, CQRS, Repository patterns. It looks like overengineering, but I do believe that a project will grow and these things will be necessary.

docker image: docker pull diyaz/service-log:latest

Using

For inspecting logs use Web UI, there is also searching form. Logs can be saved in several ways:

Database

Certain workers (scrapers, consoles, whatever applications) can save logs directly to DB via sl.infrastructure assembly. The assembly has necessary validation logic to protect from invalid data.

WebApi

Certain workers (scrapers, consoles, whatever applications) can send logs to the WebApi endpoint. There is a Swagger Api documentation, where models and methods are well described.

image

Examples

Web UI

List of logs: image

Viewing a particular log: image

Error on client side

Let's take an unhandled error as an example. Usually, when something goes wrong, application should notify a user about it. After that, the user see a message like "Something goes wrong!", then the user wants to understand what it was and, of course, avoid this kind of error in the future. Unfortunately, when people inform tech support about some bad behavior, most of them can't describe properly a problem and what they did. So consequently, the support gleans information from million logs and subjective client's description. It's not a fast and good way of solving the problem. However, what if a user can provide a link with the log that contains all the information: when? how? where? and stack trace :).

image

License

service-log is MIT licensed.

About

Logging as a service. It's a very simple logging service that saves only logs and gives an ability to scan them.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published