Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small tweaks to Serilog configuration #2

Merged
merged 2 commits into from
Jul 13, 2023
Merged

Conversation

donaldgray
Copy link
Member

Slight change to serilog config, when deployed the default logging output was overly verbose with details of health-checks etc:

  • Switched to builder.Host.UseSerilog( which gives more than builder.Logging.AddSerilog(.
  • Reading serilog settings from appSettings (.ReadFrom.Configuration(hostContext.Configuration)) to allow changing levels without rebuilding.

Added local compose file to aid local debugging.

Allows for control without rebuilding. Slight change to logging format
and add request logging
@donaldgray donaldgray merged commit 1ad961e into main Jul 13, 2023
@donaldgray donaldgray deleted the feature/serilog_tweaks branch July 13, 2023 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants