[CSHARP-4348] Improve logging related class and member names Created: 07/Oct/22  Updated: 28/Oct/23  Resolved: 12/Oct/22

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 2.18.0

Type: Improvement Priority: Unknown
Reporter: Robert Stam Assignee: Boris Dogadov
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: Easier debugging with standardized logging
Quarter: FY23Q4, FY24Q1

 Description   

As a general rule class names should not be plural (e.g., string not stringsGuid not Guids) with a few exceptions like XyzSettings.

Accordingly, I would like to see the following names changed in the new logging code:

EventsLogger => EventLogger
StructuredLogsTemplates => StructuredLogTemplate
LoggingFactory => LoggerFactory (because it returns an ILoggerFactory not an ILoggingFactory)
EventsPublisher => EventPublisher
EventsLogsFormattingOptions => EventLogFormattingOptions
Extentions => Extensions (spelling)
LogsTemplateProvider => LogTemplateProvider



 Comments   
Comment by Githook User [ 12/Oct/22 ]

Author:

{'name': 'BorisDog', 'email': 'BorisDog@users.noreply.github.com', 'username': 'BorisDog'}

Message: CSHARP-4348: Improve logging related class and member names (#899)
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/664d96c7765b8f94d52efacb97573b59ca8b55cd

Generated at Wed Feb 07 21:47:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.