Skip to content

Conversation

@hokagedami
Copy link
Owner

Overview

This PR addresses #14 by adding comprehensive ASP.NET Core integration documentation and examples.

Changes

  • Program.cs Configuration: Complete setup example with Serilog configuration
  • appsettings.json: JSON-based configuration with proper enricher setup
  • Controller Examples: Realistic controller implementation with error handling
  • Service Layer: Shows call stack tracing through service layers
  • Expected Output: Sample log output showing call stack traces

Key Features Demonstrated

  • Request logging middleware integration
  • Exception handling with call stack context
  • Namespace filtering for cleaner output
  • Performance considerations for web apps
  • Both code and configuration-based setup

Testing

  • ✅ Verified examples compile against latest Serilog versions
  • ✅ Tested configuration examples in sample ASP.NET Core app
  • ✅ Confirmed output format matches documentation

Impact

This should significantly improve adoption for ASP.NET Core developers who represent the majority of potential users.

Notes

  • Examples use minimal APIs and modern ASP.NET Core patterns
  • Includes both programmatic and configuration-based setup
  • Shows realistic error handling scenarios

Ready for review! Happy to adjust based on feedback.

- Add Program.cs configuration with Serilog setup
- Include appsettings.json configuration examples
- Add Controller and Service layer integration samples
- Show expected log output with call stack traces
- Address common scenarios like exception handling and middleware

Closes #14
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