rspec/rules/S6667/resources-dotnet.adoc
github-actions[bot] a6f17497f7
Create rule S6667: Exceptions should be passed as an argument when logging in a catch clause (#2516)
* Create rule S6667

* Add csharp description

* Add link to Serilog Serilog001: Exception Usage

* Review comments

* Add VB descriptions and samples

* Add VB

* Code review

* Add logging tag

---------

Co-authored-by: martin-strecker-sonarsource <martin-strecker-sonarsource@users.noreply.github.com>
Co-authored-by: Martin Strecker <martin.strecker@sonarsource.com>
Co-authored-by: Costin Zaharia <costin.zaharia@sonarsource.com>
2024-02-22 15:46:16 +01:00

10 lines
826 B
Plaintext

== Resources
=== Documentation
* Microsoft Learn - https://learn.microsoft.com/en-us/dotnet/core/extensions/logging?tabs=command-line#log-exceptions[Log exceptions]
* Microsoft Learn - https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.logging.loggerextensions[LoggerExtensions Class]
* Microsoft Learn - https://learn.microsoft.com/en-us/dotnet/core/extensions/logging-providers[Logging providers]
* Microsoft Learn - https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/statements/exception-handling-statements#the-try-catch-statement[The `try-catch` statement]
* Serilog - https://github.com/serilog/serilog/wiki/Getting-Started#example-application[Example application]
* Serilog Analyzer - https://github.com/Suchiman/SerilogAnalyzer#serilog001-exception-usage[`Serilog001`: Exception Usage]