Wiki documentation on choice of logger #871
Labels
No labels
_CRITICAL_
API
app
backEnd
Blocked, waiting for further changes
bug
cleanup
close
design
duplicate
enhancement
feature request
frontEnd
help wanted
invalid
low priority
needs input
needs review
project documentation
question
research
reviewed
script
security
SQL
style
testing
topLevel
wontfix
No milestone
No project
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Andras/BoundlessFlowCampus2K#871
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
ILogger is a high-performance, structured logging API to help monitor application behavior and diagnose issues. Its basic logging providers are already built-in to ASP.NET Core
Barbecue of this ILogger is going to be used
Originally posted by @a22erigr in #856 (comment)
What should be done
Evaluation of Logging Frameworks
Introduction
Larger and even medium projects (like this one) need logging to format timelines of events and provide general overviews of the system. But for the moment, this is done by a scattering random Console.WriteLine statemnts in the code. This does get the job done, but it is far from being even close to optimal. A selection where monitoring behaviours, diagnosing issues, and just general filtering of messages are possible is needed. A logging system would do all described and more.
Requirements
Options found
ILogger
ILogger is a high-performance, structured logging API to help monitor application behavior and diagnose issues. Its basic logging providers are already built-in to ASP.NET Core
ILogger is better for debugging since it adds structure and control to logging
Advantages over Console.WriteLine. ILogger can:
Pros:
Serilog
It is modern. Net logging library designed for structured logging and built with powerful structured event data.
Pros:
Cons:
Conclusion
ILogger is a high-performance, structured logging API to help monitor application behavior and diagnose issues. Its basic logging providers are already built-in to ASP.NET Core
The ILogger is going to be used
It looks good and well structured, the choice of logging is very clear and to the point.
The reason to abandon the old
Console.WriteLineis valid.The comparison between ILogger and Serilog is clear and understandable.
The conclusion matches the project requirements well.
Questions I have:
Should this be on a wiki page?
What is this barbecue thing?
@c24elipe will copy the text and place it in the wiki
@a22erigr can we close this issue?
yes