-
Notifications
You must be signed in to change notification settings - Fork 0
Add diagnostic logging infrastructure using Serilog #98
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
Conversation
Co-authored-by: MichaelKoster70 <[email protected]>
…vice Co-authored-by: MichaelKoster70 <[email protected]>
|
@copilot do not implement the abstractions - use Microsoft.Extensions.Logging directly |
…pression with traditional switch Co-authored-by: MichaelKoster70 <[email protected]>
Co-authored-by: MichaelKoster70 <[email protected]>
Done in commit 79e424e. I've replaced the custom logging abstractions with Microsoft.Extensions.Logging.Abstractions (v6.0.0). All custom ILogger, ILoggerFactory, and LogLevel implementations have been removed and replaced with the official Microsoft package interfaces. |
…otSupportedException Co-authored-by: MichaelKoster70 <[email protected]>
|
@copilot Use SeriLog "Serilog.Extensions.Logging" to implement the file logger |
Co-authored-by: MichaelKoster70 <[email protected]>
Done in commit 2c84e73. I've replaced the custom FileLogger implementation with Serilog. The implementation now uses:
The FileLoggerFactory now configures Serilog with a file sink and uses SerilogLoggerFactory to provide ILogger instances. The log format and functionality remain the same from a user perspective. |
src/Extension/RemoteDebuggerLauncher/Logging/FileLoggerFactory.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: MichaelKoster70 <[email protected]>
45e5328 to
bf164b1
Compare
70504f9 to
801daca
Compare
The factory is now named
LoggerFactoryto better reflect that it can configure multiple types of loggers, not just file-based ones. This makes the naming more extensible for future enhancements.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.