SLF4J / SLF4J-526 [Open]
Idea for fluent API improvement

==============================

Here's what changed in this issue in the last few minutes.

There is 1 comment.

View or comment on issue using this link
https://jira.qos.ch/browse/SLF4J-526

==============================
 1 comment
------------------------------

Adrian Shum on 15/Dec/21 9:55 PM
My main concern is, when we write / read code for logging, intuition is to 
write the message first, and then provide the arguments. 
The existing fluent api is suggesting the other way round: as you could only 
provide the message in log(), arguments provided by addArgument() will come 
before the message, and arguments provided with log() will come after the 
message, making the code being a headache to read.

 

another concern is addArgument() is too verbose, calling it arg() is going to 
equally maintainable but more enjoyable to write/read


==============================
 This message was sent by Atlassian Jira (v8.8.0#808000-sha1:e2c7e59)

_______________________________________________
slf4j-dev mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/slf4j-dev

Reply via email to