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.
- depends on
-
JAVA-4771 Add log messages to CMAP spec
- Closed