shesha-io / shesha-framework

An open-source Low-Code development framework for .NET developers. Create .NET based business applications with 80% less code.
https://shesha.io
Apache License 2.0
285 stars 45 forks source link

Update the default log provider to SeriLog instead of Log4Net #1426

Open ihouvet opened 2 weeks ago

ihouvet commented 2 weeks ago

Overview

The Shesha starter application comes with Log4Net configured by default. This is somewhat outdated and should be changed to Serilog.

Acceptance Criteria

  1. Shesha starter application configured with Serilog by default.
    1. log4net.config Removed from starter project
    2. AppSettings to come with default Serilog configuration.
  2. Since Logger object is exposed via the AspNetBoilerplate infrastructure in most cases (e.g. on AppServices and DomainServices) and it uses Log4Net by default will probably have to change default configuration there (see: https://aspnetboilerplate.com/Pages/Documents/Logging)
  3. Shesha documentation is updated. Should mostly consist of:
    1. Explanation that using Serilog
    2. Basic how to, for example how to change logging level and sinks
    3. References to Serilog documentation.

Useful Resources:

  1. https://youtu.be/QjO2Jac1uQw?si=w8KSuytxSzEeEfja
  2. https://youtu.be/nVAkSBpsuTk?si=nA5QjJqX5FO7Gtx8