Add serilog #5
Reference in New Issue
Block a user
Delete Branch "serilog"
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?
This pull request adds Seq logging support to the
HomeApiproject and its build workflow. Seq is a structured log server that helps collect, search, and analyze logs. The changes include updating configuration files, adding necessary NuGet packages, and modifying the application's startup to enable Seq logging.Logging integration:
appsettings.jsonandappsettings.Development.json, specifying the Seq server URL, API key, minimum log level, and per-namespace overrides.Program.csto configure logging with Seq by reading settings from theSeqsection of the configuration.Seq.Extensions.Logging,Serilog.Sinks.Console, andSerilog.Sinks.SeqinHomeApi.csproj.CI/CD workflow updates:
.github/workflows/build.ymlto include Seq logging configuration in the build process, using both hardcoded and environment-specific values for the Seq server URL and API key. [1] [2]