rspec/rules/S106/description.adoc
Angelo Buono e8cd1b485d
Modify rule S106: Migrate to LayC - Standard outputs should not be used directly to log anything (#3280)
Co-authored-by: Marco Borgeaud <89914223+marco-antognini-sonarsource@users.noreply.github.com>
Co-authored-by: Zsolt Kolbay <121798625+zsolt-kolbay-sonarsource@users.noreply.github.com>
2023-10-16 18:57:06 +00:00

11 lines
502 B
Plaintext

In software development, logs serve as a record of events within an application, providing crucial insights for debugging.
When logging, it is essential to ensure that the logs are:
* easily accessible
* uniformly formatted for readability
* properly recorded
* securely logged when dealing with sensitive data
Those requirements are not met if a program directly writes to the standard outputs (e.g., {language_std_outputs}).
That is why defining and using a dedicated logger is highly recommended.