[JAVA-4962] Add interpolation to unstructured logging Created: 11/May/23  Updated: 25/May/23  Resolved: 25/May/23

Status: Closed
Project: Java Driver
Component/s: Logging
Affects Version/s: None
Fix Version/s: 4.10.0

Type: Improvement Priority: Unknown
Reporter: Slav Babanin Assignee: Slav Babanin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on JAVA-4771 Add log messages to CMAP spec Closed
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

The conditional logging statements can become quite cumbersome. As alternative, we could use special formatting similar to SLF4j but extended for our needs. This new format could use }} placeholders for values and {{[] placeholders for conditionals. We could enclose parts of the sentences within conditionals like [ with service-id {}], meaning that if the value is null, the entire sentence within brackets would be omitted.


Generated at Thu Feb 08 09:03:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.