qos-ch / slf4j

Simple Logging Facade for Java
http://www.slf4j.org
MIT License
2.35k stars 990 forks source link

SLF4J-256: Fluent API improvement #272

Open adrianshum opened 2 years ago

adrianshum commented 2 years ago
ceki commented 2 years ago

@adrianshum Thank you for this PR.

The log() method with no arguments adds flexibility to the API. However, I am afraid that users will forget to call log() after populating the event. That is the reasons it was not added in the first place. (I forgot about this reasoning until recently. Sorry about that.)

pedrolamarao commented 2 years ago

@adrianshum Thank you for this PR.

The log() method with no arguments adds flexibility to the API. However, I am afraid that users will forget to call log() after populating the event. That is the reasons it was not added in the first place. (I forgot about this reasoning until recently. Sorry about that.)

If static analysis was provided to warn users of incorrect usage, would you consider this to have enough usability?